show statistics on second screen

This commit is contained in:
2020-11-20 12:20:30 +01:00
parent 3807e2fa9f
commit 206e371d48
8 changed files with 72 additions and 54 deletions

View File

@ -15,26 +15,17 @@
* Adapted from Arduino to STM32 HAL by wollud1969
*/
typedef enum {
OLED_SCREEN0 = 0,
OLED_SCREEN1
} oledScreen_t;
void oledInit(void);
/*
* Will be used only internal
void oled_CLS(void);
void oled_Set_Pos(unsigned char x,unsigned char y);//Set the coordinate
void oled_WrDat(unsigned char data); //Write Data
void oled_P6x8Char(unsigned char x,unsigned char y,unsigned char ch);
void oled_P6x8Str(unsigned char x,unsigned char y,char ch[]);
void oled_P8x16Str(unsigned char x,unsigned char y,char ch[]);
void oled_PrintBMP(unsigned char x0,unsigned char y0,unsigned char x1,unsigned char y1,unsigned char bmp[]);
void oled_Fill(unsigned char dat);
void oled_PrintEdge(void);
void oled_Cursor(unsigned char cursor_column, unsigned char cursor_row);
void oled_PrintLine(void);
*/
void oledClear();
void oledPrint(char msg[]);
void oledPrintf(const char *format, ...);
void oledPrint(oledScreen_t screen, char msg[]);
void oledPrintf(oledScreen_t screen, const char *format, ...);
void oledSetActiveScreen(oledScreen_t screen);
#endif /* OLED_H_ */

View File

@ -2,9 +2,11 @@
#define _WIZHELPER_H_
#include <stdbool.h>
#include <stdint.h>
int wizInit();
bool isNetworkAvailable();
uint8_t* wizGetIPAddress();
#endif // _WIZHELPER_H_