32 lines
568 B
C
Raw Normal View History

2020-11-19 19:09:22 +01:00
/*
* oled.h
*
* Created on: May 29, 2017
* Author: wn
*/
#ifndef OLED_H_
#define OLED_H_
/*
* Code found at http://www.instructables.com/id/How-to-use-OLED-display-arduino-module/
* Thank you very much!
* Adapted from Arduino to STM32 HAL by wollud1969
*/
2020-11-20 12:20:30 +01:00
typedef enum {
OLED_SCREEN0 = 0,
OLED_SCREEN1
} oledScreen_t;
void oledInit(void);
2020-11-19 20:03:37 +01:00
void oledClear();
2020-11-20 12:20:30 +01:00
void oledPrint(oledScreen_t screen, char msg[]);
void oledPrintf(oledScreen_t screen, const char *format, ...);
void oledSetActiveScreen(oledScreen_t screen);
2020-11-19 19:09:22 +01:00
#endif /* OLED_H_ */