X-Git-Url: http://git.rohieb.name/hackover2013-badge-firmware.git/blobdiff_plain/517dd479c063e0db2d1a53d92e4202988270e74d..eb5531b307f75eb3d3a3b6cee380072f8af187fd:/main.c diff --git a/main.c b/main.c index 6d5c158..703bf96 100644 --- a/main.c +++ b/main.c @@ -60,7 +60,9 @@ int main(void) uint32_t currentSecond, lastSecond; currentSecond = lastSecond = 0; - + + lcdTest(); + while (1) { // Toggle LED once per second @@ -68,7 +70,7 @@ int main(void) if (currentSecond != lastSecond) { lastSecond = currentSecond; - gpioSetValue(CFG_LED_PORT, CFG_LED_PIN, ~(gpioGetValue(CFG_LED_PORT, CFG_LED_PIN))); + gpioSetValue(CFG_LED_PORT, CFG_LED_PIN, !(gpioGetValue(CFG_LED_PORT, CFG_LED_PIN))); } // Poll for CLI input if CFG_INTERFACE is enabled in projectconfig.h