Archive for 30 Aug 2010

RTC Module (Part 3)

Part 1, 2, 3, 4, 5, 6, 7 Now that we have the hardware and the routines and functions ready, let’s apply them to a simple application. This one will print “tic”, wait half a second, print “tac” followed by the second index. (Real nutty stuff :-[) void loop() { int pinState = ((PINB >> oneHertzPin) & 0x01); if (lastPinState != pinState) […]