diff --git a/SSD1306.h b/SSD1306.h index 965f1ffff44adc84f24cd47dc4f66c7d130c8c62..6d84026633517158ddf2f7324824e192b3cf316a 100644 --- a/SSD1306.h +++ b/SSD1306.h @@ -101,7 +101,7 @@ enum SSD1306_TEXT_ALIGNMENT { TEXT_ALIGN_LEFT = 0, TEXT_ALIGN_RIGHT = 1, TEXT_ALIGN_CENTER = 2, - TEXT_ALIGN_CENTER_BOTH = 3 + TEXT_ALIGN_CENTER_BOTH = 3 }; class SSD1306 { @@ -111,16 +111,16 @@ class SSD1306 { uint8_t sda; uint8_t sdc; - uint8_t *buffer; + uint8_t *buffer; #ifdef SSD1306_DOUBLE_BUFFER - uint8_t *buffer_back; + uint8_t *buffer_back; #endif - SSD1306_TEXT_ALIGNMENT textAlignment = TEXT_ALIGN_LEFT; - SSD1306_COLOR color = WHITE; + SSD1306_TEXT_ALIGNMENT textAlignment = TEXT_ALIGN_LEFT; + 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) void sendCommand(unsigned char com); diff --git a/SSD1306Ui.h b/SSD1306Ui.h index 5fbfa9d369fe026c4589f1ef2841361e6c017717..b95a5eddb03b8419358e8052085de08c2af80f84 100644 --- a/SSD1306Ui.h +++ b/SSD1306Ui.h @@ -192,9 +192,9 @@ class SSD1306Ui { /** * Draw the indicator. - * This is the defaut state for all frames if - * the indicator was hidden on the previous frame - * it will be slided in. + * This is the defaut state for all frames if + * the indicator was hidden on the previous frame + * it will be slided in. */ void enableIndicator(); @@ -247,17 +247,22 @@ class SSD1306Ui { // Loading animation - /** - * Set the function that will draw each step - * in the loading animation - */ + /** + * Set the function that will draw each step + * in the loading animation + */ void setLoadingDrawFunction(LoadingDrawFunction stage); + + + /** + * Run the loading process + */ void runLoadingProcess(LoadingStage* stages, uint8_t stagesCount); // Manuell Controll - void nextFrame(); - void previousFrame(); + void nextFrame(); + void previousFrame(); // State Info SSD1306UiState* getUiState(); diff --git a/library.json b/library.json index 4bc690df7123899c00f91f0c4880032e20dfee7e..ebebee2f031abdb235be2514044e89ed010dbf2b 100644 --- a/library.json +++ b/library.json @@ -1,6 +1,6 @@ { "name": "ESP8266_SSD1306", - "version": "3.0.0", + "version": "3.0.0", "keywords": "ssd1306, oled, display, i2c", "description": "A I2C display driver for SSD1306 oled displays connected to an ESP8266", "repository": @@ -8,17 +8,17 @@ "type": "git", "url": "https://github.com/squix78/esp8266-oled-ssd1306.git" }, - "authors": - [ - { - "name": "Daniel Eichhorn", - "email": "squix78@gmail.com" - }, + "authors": + [ + { + "name": "Daniel Eichhorn", + "email": "squix78@gmail.com" + }, { "name": "Fabrice Weinberg", "email": "fabrice@weinberg.me" } - ], + ], "frameworks": "arduino", "platforms": "espressif" }