Eu tela 320 * 240 I instalado como a biblioteca relógio DS1302, mas a tela não me mostrar o relógio, apenas o dia, data e ano,
Assim que o relógio pode aparecer?
Obrigado
            
                        
                        
                        



 
 








#include <DS1307henning.h>
// Init the DS1307
DS1307 rtc(20, 21);
void setup()
{
  // Set the clock to run-mode
  rtc.halt(false);
  
  // Setup Serial connection
  Serial.begin(9600);
}
void loop()
{
  // Send Day-of-Week
  Serial.print(rtc.getDOWStr());
  Serial.print(" ");
  
  // Send date
  Serial.print(rtc.getDateStr());
  Serial.print(" -- ");
  // Send time
  Serial.println(rtc.getTimeStr());
  
  // Wait one second before repeating :)
  delay (1000);
}








Users viewing this topic: No registered users and 1 guest