aaaa
This commit is contained in:
@ -51,6 +51,7 @@ void showtime(double second)
|
||||
int iiii=10;
|
||||
void setup()
|
||||
{
|
||||
delay(500);
|
||||
pinMode(34,INPUT);
|
||||
pinMode(4,INPUT_PULLUP);
|
||||
timebegin=millis();
|
||||
@ -98,6 +99,7 @@ void setup()
|
||||
Serial.begin(115200); //Start serial communication at 9600 for debug statements
|
||||
Serial.println("TM1650 Example Code");
|
||||
d.init();
|
||||
d.setBrightness(0x01);
|
||||
xLastWakeTime = xTaskGetTickCount();
|
||||
size_t timenow=millis();
|
||||
if (TimeTotle<999.8*3600)
|
||||
@ -142,7 +144,7 @@ void loop()
|
||||
//showtime("8000",2);
|
||||
//delay(2000);
|
||||
size_t timenow=millis();
|
||||
if (TimeTotle<999.8*3600)
|
||||
if (TimeTotle<999.8*3600000)
|
||||
{
|
||||
TimeTotle=TimeTotle+(timenow-timebegin);
|
||||
timebegin=timenow;
|
||||
|
||||
Reference in New Issue
Block a user