From: Kevin Townsend Date: Mon, 26 Mar 2012 16:07:46 +0000 (+0200) Subject: v1.0.0 X-Git-Url: http://git.rohieb.name/hackover2013-badge-firmware.git/commitdiff_plain/8166e67de7b7a18cc2130cd44ec536e29cd9f3e2?ds=inline v1.0.0 --- diff --git a/build/crossworks/LPC1343_CodeBase.hzp b/build/crossworks/LPC1343_CodeBase.hzp index cf2a5fd..c01ad87 100644 --- a/build/crossworks/LPC1343_CodeBase.hzp +++ b/build/crossworks/LPC1343_CodeBase.hzp @@ -134,6 +134,7 @@ + diff --git a/build/crossworks/LPC1343_CodeBase.hzs b/build/crossworks/LPC1343_CodeBase.hzs index 6ba85aa..d903c47 100644 --- a/build/crossworks/LPC1343_CodeBase.hzs +++ b/build/crossworks/LPC1343_CodeBase.hzs @@ -24,8 +24,12 @@ + + + + @@ -63,7 +67,19 @@ - + + + + + + + + + + + + + - + diff --git a/main.c b/main.c index 8ca68e0..99f192a 100644 --- a/main.c +++ b/main.c @@ -61,7 +61,7 @@ int main(void) uint32_t currentSecond, lastSecond; currentSecond = lastSecond = 0; - + while (1) { // Toggle LED once per second diff --git a/projectconfig.h b/projectconfig.h index f8ae340..59abed5 100644 --- a/projectconfig.h +++ b/projectconfig.h @@ -152,7 +152,8 @@ ST7565 X X X X X X X X X X X X X . . . X ST7735 . . . . X X X X X X . . . . . . . SHARPMEM . . . . X X X X . . . . . . . . . - SSD1306 . . . . X X X . X X . . . . . . . + SSD1306 SPI . . . . X X X . X X . . . . . . . + SSD1306 I2C . . . . . X . . . . . . . . . . . SSD1351 . . . . X X X X X . . . . . . . . MCP121 . . . . . . . . . . . . . . X . . PN532 [3] . . . . . . . . . . . . . . X X . @@ -171,14 +172,15 @@ ST7565 . . . . . X X X X . ST7535 . . . . . . . . . . SHARPMEM . . . . . . . . . . - SSD1306 . . . . . . . . . . + SSD1306 SPI . . . . . . . . . . + SSD1306 I2C . . . . . . . . . . INTERFACE . . . . . . . . . X[2] [1] PMU uses 32-bit Timer 0 for SW wakeup from deep-sleep. This timer can safely be used by other peripherals, but may need to be reconfigured when you wakeup from deep-sleep. [2] INTERFACE can be configured to use either USBCDC or UART - [3] 3.2 only used when with the I2C bus (for IRQ) + [3] P3.2 is only used with the I2C bus (for IRQ) **************************************************************************/ @@ -199,6 +201,7 @@ TSL2561 0x72 0111001x TCS3414 0x72 0111001x PN532 0x48 0100100x + SSD1306_I2C 0x78 0111100x // Assumes SA0 = GND [1] Alternative addresses may exists, but the addresses listed in this table are the values used in the code base @@ -1202,12 +1205,13 @@ the 128x64 pixel ST7565 LCD to be included CFG_SSD1306 If defined, this will cause drivers for the 128x64 pixel SSD1306 OLED display to be - included + included (using bit-banged SPI) CFG_SHARPMEM If defined, this will cause drivers for Sharp Memory Displays to be included DEPENDENCIES: ST7565 requires the use of pins 2.1-6. DEPENDENCIES: SSD1306 requires the use of pins 2.1-6. + DEPENDENCIES: SSD1306_I2C requires the use of pins 2.2. DEPENDENCIES: SHARPMEM requires the use of pins 2.1-4. -----------------------------------------------------------------------*/ // #define CFG_ST7565