# HG changeset patch # User Ethan Zonca # Date 2014-07-07 22:22:41 # Node ID 6ef9b6f499ac69ba06f960091d4c3b718a8b623d # Parent a48d9ffdc5db11f8d5189cc1accb8c6d96dbdee6 Minor changes diff --git a/main.c b/main.c --- a/main.c +++ b/main.c @@ -1,5 +1,6 @@ #include "main.h" #include "stm32l100c_discovery.h" +#include "ssd1306.h" static __IO uint32_t TimingDelay; uint8_t BlinkSpeed = 0; @@ -14,7 +15,6 @@ int main(void) STM_EVAL_LEDInit(LED3); STM_EVAL_LEDInit(LED4); - SSD1303_Init(); /* Initialize User_Button on STM32L100C-Discovery */ //STM_EVAL_PBInit(BUTTON_USER, BUTTON_MODE_GPIO); @@ -27,6 +27,9 @@ int main(void) BlinkSpeed = 1; /* Init lcd driver */ + SSD1303_Init(); + SSD1303_DrawPoint(3,3,1); + SSD1303_DrawPoint(5,5,0); STM_EVAL_LEDOn(LED4); Delay(1000); diff --git a/ssd1306.h b/ssd1306.h --- a/ssd1306.h +++ b/ssd1306.h @@ -12,5 +12,6 @@ unsigned long SSD1303_TurnOn(void); unsigned char SSD1303_SetContrast(unsigned char contrast); unsigned char SSD1303_GetContrast(); unsigned char* SSD1303_GetBuffer(); +unsigned long SSD1303_DrawPoint(Pos_t x, Pos_t y, Color_t color); #endif