Skip to content
Snippets Groups Projects
Commit b6857d34 authored by Fabrice Weinberg's avatar Fabrice Weinberg
Browse files

Convert tabs to spaces

parent 2d1ddf15
No related branches found
No related tags found
No related merge requests found
...@@ -101,7 +101,7 @@ enum SSD1306_TEXT_ALIGNMENT { ...@@ -101,7 +101,7 @@ enum SSD1306_TEXT_ALIGNMENT {
TEXT_ALIGN_LEFT = 0, TEXT_ALIGN_LEFT = 0,
TEXT_ALIGN_RIGHT = 1, TEXT_ALIGN_RIGHT = 1,
TEXT_ALIGN_CENTER = 2, TEXT_ALIGN_CENTER = 2,
TEXT_ALIGN_CENTER_BOTH = 3 TEXT_ALIGN_CENTER_BOTH = 3
}; };
class SSD1306 { class SSD1306 {
...@@ -111,16 +111,16 @@ class SSD1306 { ...@@ -111,16 +111,16 @@ class SSD1306 {
uint8_t sda; uint8_t sda;
uint8_t sdc; uint8_t sdc;
uint8_t *buffer; uint8_t *buffer;
#ifdef SSD1306_DOUBLE_BUFFER #ifdef SSD1306_DOUBLE_BUFFER
uint8_t *buffer_back; uint8_t *buffer_back;
#endif #endif
SSD1306_TEXT_ALIGNMENT textAlignment = TEXT_ALIGN_LEFT; SSD1306_TEXT_ALIGNMENT textAlignment = TEXT_ALIGN_LEFT;
SSD1306_COLOR color = WHITE; SSD1306_COLOR color = WHITE;
const char *fontData = ArialMT_Plain_10; const char *fontData = ArialMT_Plain_10;
// Send a command to the display (low level function) // Send a command to the display (low level function)
void sendCommand(unsigned char com); void sendCommand(unsigned char com);
......
...@@ -192,9 +192,9 @@ class SSD1306Ui { ...@@ -192,9 +192,9 @@ class SSD1306Ui {
/** /**
* Draw the indicator. * Draw the indicator.
* This is the defaut state for all frames if * This is the defaut state for all frames if
* the indicator was hidden on the previous frame * the indicator was hidden on the previous frame
* it will be slided in. * it will be slided in.
*/ */
void enableIndicator(); void enableIndicator();
...@@ -247,17 +247,22 @@ class SSD1306Ui { ...@@ -247,17 +247,22 @@ class SSD1306Ui {
// Loading animation // Loading animation
/** /**
* Set the function that will draw each step * Set the function that will draw each step
* in the loading animation * in the loading animation
*/ */
void setLoadingDrawFunction(LoadingDrawFunction stage); void setLoadingDrawFunction(LoadingDrawFunction stage);
/**
* Run the loading process
*/
void runLoadingProcess(LoadingStage* stages, uint8_t stagesCount); void runLoadingProcess(LoadingStage* stages, uint8_t stagesCount);
// Manuell Controll // Manuell Controll
void nextFrame(); void nextFrame();
void previousFrame(); void previousFrame();
// State Info // State Info
SSD1306UiState* getUiState(); SSD1306UiState* getUiState();
......
{ {
"name": "ESP8266_SSD1306", "name": "ESP8266_SSD1306",
"version": "3.0.0", "version": "3.0.0",
"keywords": "ssd1306, oled, display, i2c", "keywords": "ssd1306, oled, display, i2c",
"description": "A I2C display driver for SSD1306 oled displays connected to an ESP8266", "description": "A I2C display driver for SSD1306 oled displays connected to an ESP8266",
"repository": "repository":
...@@ -8,17 +8,17 @@ ...@@ -8,17 +8,17 @@
"type": "git", "type": "git",
"url": "https://github.com/squix78/esp8266-oled-ssd1306.git" "url": "https://github.com/squix78/esp8266-oled-ssd1306.git"
}, },
"authors": "authors":
[ [
{ {
"name": "Daniel Eichhorn", "name": "Daniel Eichhorn",
"email": "squix78@gmail.com" "email": "squix78@gmail.com"
}, },
{ {
"name": "Fabrice Weinberg", "name": "Fabrice Weinberg",
"email": "fabrice@weinberg.me" "email": "fabrice@weinberg.me"
} }
], ],
"frameworks": "arduino", "frameworks": "arduino",
"platforms": "espressif" "platforms": "espressif"
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment