Simplified new version v3.0.0

This commit is contained in:
matiasus 2022-12-10 00:54:34 +01:00
parent 959bdd55b7
commit e9d21b2031
4 changed files with 13 additions and 6 deletions

View File

@ -4,7 +4,15 @@
Detailed information are described in [Datasheet SSD1306](https://cdn-shop.adafruit.com/datasheets/SSD1306.pdf).
## Library
C library is aimed for driving [0.96" OLED display with SSD1306 driver](#demonstration) 128x64 through TWI's Atmega328p.
C library is aimed for driving [0.96" OLED display with SSD1306 driver](#demonstration) 128x64 & 128x32 version through TWI's Atmega328p. Settings for different versions:
- 128x64 version
- argument command of **SSD1306_SET_MUX_RATIO** set to *63* (ssd1306.c)
- argument command of **SSD1306_COM_PIN_CONF** set to *0x12* (ssd1306.c)
- **END_PAGE_ADDR** set to 7 (ssd1306.h)
- 128x32 version
- argument command of **SSD1306_SET_MUX_RATIO** set to *31* (ssd1306.c)
- argument command of **SSD1306_COM_PIN_CONF** set to *0x02* (ssd1306.c)
- **END_PAGE_ADDR** set to 3 (ssd1306.h)
### Versions
- 1.0 - basic functions. The first publication.
@ -16,7 +24,7 @@ C library is aimed for driving [0.96" OLED display with SSD1306 driver](#demonst
- 3.0 - simplified alphanumeric version
- less RAM consumption
- used for displaying alphanumeric characters
- **!!!** no graphics functions
- **!!!** no graphic functions
## Dependencies
- [font.c](https://github.com/Matiasus/SSD1306/blob/readme-edits/lib/font.c)

View File

@ -16,7 +16,7 @@
* --------------------------------------------------------------------------------------+
* @descr Version 1.0 -> applicable for 1 display
* Version 2.0 -> rebuild to 'cacheMemLcd' array
* Version 3.0 -> remove 'cacheMemLcd' approach
* Version 3.0 -> simplified alphanumeric version
* --------------------------------------------------------------------------------------+
* @usage Basic Setup for OLED Display
*/

View File

@ -16,7 +16,7 @@
* -------------------------------------------------------------------------------------+
* @descr Version 1.0 -> applicable for 1 display
* Version 2.0 -> rebuild to 'cacheMemLcd' array
* Version 3.0 -> remove 'cacheMemLcd' approach
* Version 3.0 -> simplified alphanumeric version
* -------------------------------------------------------------------------------------+
* @usage Basic Setup for OLED Display
*/
@ -25,7 +25,6 @@
#define __SSD1306_H__
// includes
#include <string.h>
#include "font.h"
#include "twi.h"

2
main.c
View File

@ -16,7 +16,7 @@
* --------------------------------------------------------------------------------------+
* @descr Version 1.0 -> applicable for 1 display
* Version 2.0 -> rebuild to 'cacheMemLcd' array
* Version 3.0 -> less RAM requirement but with few limitation
* Version 3.0 -> simplified alphanumeric version
* --------------------------------------------------------------------------------------+
*/