当前位置: 首页 > wzjs >正文

可以做哪些网站有哪些内容吗做淘宝浏览单的网站

可以做哪些网站有哪些内容吗,做淘宝浏览单的网站,沈阳php网站,北京网上网页设计培训Arduino示例代码讲解:Row-Column Scanning an 8x8 LED matrix with X-Y input LED矩阵 Row-Column Scanning an 8x8 LED matrix with X-Y input LED矩阵功能概述硬件部分:软件部分:代码逐行解释定义常量定义变量`setup()` 函数`loop()` 函数`readSensors()` 函数`refreshScr…

Arduino示例代码讲解:Row-Column Scanning an 8x8 LED matrix with X-Y input LED矩阵

  • Row-Column Scanning an 8x8 LED matrix with X-Y input LED矩阵
    • 功能概述
        • 硬件部分:
        • 软件部分:
    • 代码逐行解释
        • 定义常量
        • 定义变量
        • `setup()` 函数
        • `loop()` 函数
        • `readSensors()` 函数
        • `refreshScreen()` 函数
    • 工作原理

Row-Column Scanning an 8x8 LED matrix with X-Y input LED矩阵

这段代码是一个Arduino示例程序,用于通过行-列扫描控制一个8x8的LED矩阵。它使用两个模拟输入(例如电位器)来控制光标的位置,并在LED矩阵上显示光标的位置。

/*Row-Column Scanning an 8x8 LED matrix with X-Y inputThis example controls an 8x8 LED matrix using two analog inputscreated 27 May 2009modified 30 Aug 2011by Tom IgoeThis example works for the Lumex  LDM-24488NI Matrix. Seehttp://sigma.octopart.com/140413/datasheet/Lumex-LDM-24488NI.pdffor the pin connectionsFor other LED cathode column matrixes, you should only need to changethe pin numbers in the row[] and column[] arraysrows are the anodescols are the cathodes---------Pin numbers:Matrix:* Digital pins 2 through 13,* analog pins 2 through 5 used as digital 16 through 19Potentiometers:* center pins are attached to analog pins 0 and 1, respectively* side pins attached to +5V and ground, respectively.This example code is in the public domain.http://www.arduino.cc/en/Tutorial/RowColumnScanningsee also http://www.tigoe.net/pcomp/code/category/arduinowiring/514 for more*/// 2-dimensional array of row pin numbers:
const int row[8] = {2, 7, 19, 5, 13, 18, 12, 16
};// 2-dimensional array of column pin numbers:
const int col[8] = {6, 11, 10, 3, 17, 4, 8, 9
};// 2-dimensional array of pixels:
int pixels[8][8];// cursor position:
int x = 5;
int y = 5;void setup() {// initialize the I/O pins as outputs// iterate over the pins:for (int thisPin = 0; thisPin < 8; thisPin++) {// initialize the output pins:pinMode(col[thisPin], OUTPUT);pinMode(row[thisPin], OUTPUT);// take the col pins (i.e. the cathodes) high to ensure that// the LEDS are off:digitalWrite(col[thisPin], HIGH);}// initialize the pixel matrix:f
http://www.dtcms.com/wzjs/597407.html

相关文章:

  • 服务行业网站建设广州市建设工程交易网
  • 网站开发安全性分析重庆付费网站推广
  • 网站编辑的岗位职责广西住房和城乡建设厅网站首页
  • 石家庄免费建站电商平台是什么
  • 重庆网站建设开发wordpress去掉评论邮箱
  • 湖北专业网站建设设计做网站工作
  • 聊城集团网站建设索尼电视网页浏览器
  • 网站是怎么做的吗荆门建网站费用
  • 求邯郸网站制作浙江同安建设有限公司网站
  • php网站后台管理系统专业做球赛旅游的网站
  • 重庆网站建设狐灵模板规格尺寸
  • 广州网站建设广州windows vps offline性x
  • 什么网站可以做行测网站模块是什么
  • 校园网站设计参考文献网站建设 申请
  • wordpress浮动视频国际网站怎么做优化
  • 网站建设区别seo模拟点击软件
  • 深圳网站建设哪家比较好网址免费全自动推广平台
  • 中国电子系统建设三公司网站甘肃购物网站建设
  • 网站怎么接入百度地图企业推广网络营销外包服务
  • 网站推广营销策划方案大石桥网站
  • 超酷网站欣赏捕鱼网站建设
  • 建立网站的基本流程好听的建筑公司名字大全
  • 网站app下载大全crm系统有哪些
  • 服务器搭建网站跑不满宽带google 字体 wordpress
  • 安卓 网站制作iis网站重定向
  • 网站底部信息谷歌网站怎么设置才能打开网站
  • 网站制作与app开发哪个要难一点p2p网站开发公司
  • wordpress安装语言设置中文乱码百度网络推广优化
  • 西宁做网站君博解决广州企业所得税
  • 外贸网站如何推广优化网站集约化建设做法