Ahoj, nevíte někdo jak udělat aby mě u sedmy segmentového displeje TM1637 blikala mezi hodiny každou sekundu dvojtečka? Mám to připojený k RTC, a dvojtečka blíká strašně rychle potřebuju aby blikla každou sekundu.Můj kód pro výpis času je: #include "Wire.h"#include <Arduino.h>#include "SevenSegmentTM1637.h"#include "SevenSegmentExtended.h"const byte PIN_CLK = 7; const byte PIN_DIO = 6; SevenSegmentExtended display(PIN_CLK, PIN_DIO);#define DS3231_I2C_ADDRESS 0x68byte second, minute, hour, dayOfWeek, dayOfMonth, month, year;byte decToBcd(byte val) { return ( (val /10 * 16) + (val % 10) );}byte bcdToDec(byte val) { return ( (val / 16 * 10) + (val % 16) );}void setup() { Serial.begin(9600); Wire.begin(); display.setBacklight(70); display.begin(); pinMode(10, OUTPUT); Timer1.initialize(1000000); Timer1.pwm(9, 512); Timer1.attachInterrupt(callback);} void readDS3231time(byte *second, byte *minute, byte *hour, byte *dayOfWeek, byte *dayOfMonth, byte *month, byte *year) { Wire.beginTransmission(DS3231_I2C_ADDRESS); Wire.write(0); Wire.endTransmission(); Wire.requestFrom(DS3231_I2C_ADDRESS, 7); *second = bcdToDec(Wire.read() & 0x7f); *minute = bcdToDec(Wire.read()); *hour = bcdToDec(Wire.read() & 0x3f); *dayOfWeek = bcdToDec(Wire.read()); *dayOfMonth = bcdToDec(Wire.read()); *month = bcdToDec(Wire.read()); *year = bcdToDec(Wire.read());}void… loop() { readDS3231time(&second, &minute, &hour, &dayOfWeek, &dayOfMonth, &month, &year); display.printTime(hour, minute, true); /* Serial.print(hour); Serial.print(":"); Serial.print(minute); Serial.print(":"); Serial.print(second); Serial.print(" "); Serial.print(dayOfMonth); Serial.print("."); Serial.print(month); Serial.print(".20"); Serial.println(year); */} Ukázat celý příspěvek