![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
物联网
liang_shixin
这个作者很懒,什么都没留下…
展开
-
Mixty-数码管滚动显示自定义字符串
#include <SevenSegmentTM1637.h>SevenSegmentTM1637 display(3,2);void setup(){ display.begin();}void loop(){ display.setBacklight(100); display.print("12345678ABCD");}原创 2019-10-23 18:30:40 · 513 阅读 · 0 评论 -
Mixty-数码管显示自定义时间
#include <SevenSegmentExtended.h>#include <SevenSegmentTM1637.h>SevenSegmentExtended display(3,2);void setup(){ display.begin();}void loop(){ display.printTime(12,30,HIGH);...原创 2019-10-23 18:29:15 · 341 阅读 · 0 评论 -
Mixty-用数码管实现秒表
#include <SevenSegmentExtended.h>#include <SevenSegmentTM1637.h>SevenSegmentExtended display(3,2);volatile int minute;volatile int second;void setup(){ second = 0; minute = 0;...原创 2019-10-23 18:25:50 · 405 阅读 · 0 评论 -
开关控制
volatile boolean b1;volatile boolean b2;volatile int click;volatile boolean lastState;volatile boolean toggle;void setup(){ pinMode(8, INPUT); Serial.begin(9600); pinMode(13, OUTPUT); la...原创 2019-10-23 11:48:18 · 215 阅读 · 0 评论