Changeset - 6ef9b6f499ac
[Not reviewed]
default
0 2 0
Ethan Zonca - 10 years ago 2014-07-07 22:22:41
ez@ethanzonca.com
Minor changes
2 files changed with 5 insertions and 1 deletions:
0 comments (0 inline, 0 general)
main.c
Show inline comments
 
#include "main.h"
 
#include "stm32l100c_discovery.h"
 
#include "ssd1306.h"
 
 
static __IO uint32_t TimingDelay;
 
uint8_t BlinkSpeed = 0;
 
 
 
/* Main */
 
@@ -11,25 +12,27 @@ int main(void)
 
   RCC_ClocksTypeDef RCC_Clocks;
 
  
 
  /* Configure LED3 and LED4 on STM32L100C-Discovery */
 
  STM_EVAL_LEDInit(LED3);
 
  STM_EVAL_LEDInit(LED4);
 
  
 
  SSD1303_Init();
 
 
  /* Initialize User_Button on STM32L100C-Discovery */
 
  //STM_EVAL_PBInit(BUTTON_USER, BUTTON_MODE_GPIO);
 
  
 
  /* SysTick end of count event each 1ms */
 
  RCC_GetClocksFreq(&RCC_Clocks);
 
  SysTick_Config(RCC_Clocks.HCLK_Frequency / 1000);
 
 
 /* Initiate Blink Speed variable */ 
 
  BlinkSpeed = 1;
 
 
 /* Init lcd driver */
 
  SSD1303_Init();
 
  SSD1303_DrawPoint(3,3,1);
 
  SSD1303_DrawPoint(5,5,0);
 
  
 
  STM_EVAL_LEDOn(LED4);
 
  Delay(1000);
 
  STM_EVAL_LEDOff(LED4);
 
  Delay(1000);
 
ssd1306.h
Show inline comments
 
@@ -9,8 +9,9 @@ unsigned long SSD1303_DrawBlock(Pos_t x,
 
unsigned long SSD1303_IsOn(void);
 
unsigned long SSD1303_TurnOff(void);
 
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
0 comments (0 inline, 0 general)