-
Notifications
You must be signed in to change notification settings - Fork 4
/
OLED.h
52 lines (30 loc) · 1.5 KB
/
OLED.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#ifndef _OLED_h
#define _OLED_h
#include "Arduino.h"
#include "Directives.h"
#ifdef _OLED
// https://github.com/ThingPulse/esp8266-oled-ssd1306
// you will also need to add fonts (http://oleddisplay.squix.ch/#/home) to ..Arduino\libraries\esp8266-oled-ssd1306-master\src\OLEDDisplayFonts.h
// Moved to to directives.. #define TextObjectLength 33 // to give 32 chars
void OLEDScreen(int OLED,bool flip, bool invert);
void SetFont(uint8_t Disp,uint8_t Font);
void StringToChar(char *line, String input);
int GetNumber(String Message, int i);
void OLED_4_RN_displays(int OLed_x,String L1,String L2,String L3,String L4);
bool RocDisplayFormatted(int OLed_x, int line, String Message);
void OLEDS_Display(String L1,String L2,String L3,String L4);
void SetupTextArrays(uint8_t Address,int Display,String Message);
void OLED_initiate(uint8_t address,int I2CBus,bool Display);
void LookForOLEDs(bool Display);
void LookForOLED_secondary(void);
void RRPowerOnIndicator(int Disp);
void drawRect(void) ;
void fillRect(void) ;
void SignalStrengthBar(int OLED); //https://stackoverflow.com/questions/15797920/how-to-convert-wifi-signal-strength-from-quality-percent-to-rssi-dbm
void showTimeAnalog(int disp,int clocksize,int center_x, int center_y, double pl1, double pl2, double pl3);
void showTimeAnalogCircle(int disp,int clocksize,int circsize,int center_x, int center_y, double pl1, double pl2, double pl3);
void BigClock(int disp,int clocksize);
void OLED_Status();
void TimeGears();
#endif //_OLED
#endif