oled library integrated and adapted to STM32 HAL
This commit is contained in:
@ -20,10 +20,15 @@
|
||||
#include <PontCoopScheduler.h>
|
||||
#include "stm32f1xx_hal.h"
|
||||
|
||||
#include "oled.h"
|
||||
|
||||
|
||||
|
||||
void blink(void *handle) {
|
||||
static uint32_t i = 0;
|
||||
HAL_GPIO_TogglePin(LED_GPIO_Port, LED_Pin);
|
||||
LED_PrintValueI(0, 1, i);
|
||||
i++;
|
||||
}
|
||||
|
||||
void my_setup_1() {
|
||||
@ -44,6 +49,9 @@ void my_errorHandler() {
|
||||
}
|
||||
|
||||
void my_setup_2() {
|
||||
LED_Init();
|
||||
LED_P6x8Str(0,0,"welcome to");
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user