Merged I2C and SPI
authorKevin Townsend <kevin@ktownsend.com>
Fri, 4 May 2012 14:54:40 +0000 (16:54 +0200)
committerKevin Townsend <kevin@ktownsend.com>
Fri, 4 May 2012 14:54:40 +0000 (16:54 +0200)
drivers/displays/bitmap/ssd1306/ssd1306.c
drivers/displays/bitmap/ssd1306/ssd1306.h

index f8e4ee4..fd5ac22 100644 (file)
@@ -490,7 +490,7 @@ uint8_t ssd1306GetPixel(uint8_t x, uint8_t y)
 /**************************************************************************/
 void ssd1306ClearScreen() 
 {
-  memset(_ssd1306buffer, 0, 1024);
+  memset(_ssd1306buffer, 0x00, 1024);
 }
 
 /**************************************************************************/
index d0f096b..538cd4d 100644 (file)
@@ -53,8 +53,8 @@
     SSD1306_BUS_I2C   Use HW I2C
 
     -----------------------------------------------------------------------*/
-    #define SSD1306_BUS_SPI
-    // #define SSD1306_BUS_I2C
+    // #define SSD1306_BUS_SPI
+    #define SSD1306_BUS_I2C
 
     #if defined SSD1306_BUS_SPI && defined SSD1306_BUS_I2C
       #error "Only one SSD1306 bus interface can be specified at once in ssd1306.h"
This page took 0.024573 seconds and 4 git commands to generate.