物联网【实验一】实现滚动显示自定义字符串
核心代码
#include <SevenSegmentTM1637.h>
SevenSegmentTM1637 display(A5,4);
void setup(){
display.begin();
display.print(“1234”);
}
void loop(){
}【实验二】实现显示自定义时间
#include <SevenSegmentExtended.h>
#include <SevenSegmentTM1637.h>
SevenSegmentExtended display(A5,4);
void setup(){
display.begin();
display.printTime(12,30,HIGH);
}
void loop(){
}【实验三】
#include <SevenSegmentExtended.h>
#include <SevenSegmentTM1637.h>
SevenSegmentExtended display(A5,4);
volatile int min2;
volatile int second;
void setup(){
second = 1;
min2 &