当前位置:网站首页>Arduino control tm1637 common positive four digit nixie tube
Arduino control tm1637 common positive four digit nixie tube
2022-06-13 00:35:00 【Flying husky】


#include "TM1637.h"
// Two pins of the nixie tube are defined here
#define CLK 2
#define DIO 3
int i;
TM1637 tm1637(CLK,DIO);
void setup(){
Serial.begin(9600);
tm1637.init();
// Decimal switch ,1 To open ,0 To close
tm1637.point(0);
// BRIGHT_TYPICAL = 2,BRIGHT_DARKEST = 0,BRIGHTEST = 7;
tm1637.set(BRIGHT_TYPICAL);
}
void loop(){
for (i = 1; i < 5; i++){
// first place
tm1637.display(0,i);
// Second
tm1637.display(1,i+1);
// Third
tm1637.display(2,i+2);
// Fourth place
tm1637.display(3,i+3);
delay(1500);
}
}边栏推荐
猜你喜欢

Basics of network security (1)
![[GXYCTF2019]禁止套娃--详解](/img/c8/8c588ab8f58e2b38b9c64c4ccd733f.png)
[GXYCTF2019]禁止套娃--详解

测试平台系列(97) 完善执行case部分
![Buuctf babyupload[gxyctf2019]](/img/e8/202298b64d8764355fad348b50fee6.png)
Buuctf babyupload[gxyctf2019]

Map from getting started to performance optimization

Is the newly graduated college student taking BEC or PMP? PM who wants to transfer to another job in the future

Penetration test summary

分公司能与员工签劳动合同么
![[MRCTF2020]Ez_bypass --BUUCTF](/img/73/85262c048e177968be67456fa4fe02.png)
[MRCTF2020]Ez_bypass --BUUCTF

安全事故等级划分为哪几级
随机推荐
浏览器控制台注入JS
硬(磁)盘(一)
Mysql批量插入数据时如何解决重复问题?
哲学和文学的区别
APISpace 空号检测API接口 免费好用
[matlab] polynomial calculation
Browser cache execution process
Static analysis of malicious code
Basic operations of FreeMarker
Learn to divide subnets in an article
ucore lab1
Programming training 1
[ciscn2019 North China Day2 web1]hack world --buuctf
Real time preview of PHP in browser by vscade
[CISCN2019 华北赛区 Day2 Web1]Hack World --BUUCTF
硬(磁)盘(二)
Buuctf babyupload[gxyctf2019]
June 13, 2022 Daily: Turing prize winner: what should we pay attention to if we want to succeed in our academic career?
Is the brokerage account in qiniu business school safe? Is the account opening rate low
Kali system -- dnsrecon for DNS collection and analysis