mirror of
https://github.com/Matiasus/SSD1306.git
synced 2024-10-03 18:18:46 -04:00
Update README.md
This commit is contained in:
parent
76def09dd8
commit
f7356dcca7
80
README.md
80
README.md
@ -16,6 +16,86 @@ Prior defined for MCU Atmega16. Need to be carefull with TWI ports definition.
|
||||
|
||||
### Tested
|
||||
Library was tested and proved on a **_SSD1306 0.96″ OLED Dispay_** with **_Atmega16_**.
|
||||
|
||||
## Init OLED Sequence
|
||||
Init sequence OLED display was defined according to page 64 (next to last page) of [Datasheet SSD1306](https://cdn-shop.adafruit.com/datasheets/SSD1306.pdf).
|
||||
|
||||
```
|
||||
// +---------------------------+
|
||||
// | Set MUX Ratio |
|
||||
// +---------------------------+
|
||||
// | 0xA8, 0x3F |
|
||||
// +---------------------------+
|
||||
// |
|
||||
// +---------------------------+
|
||||
// | Set Display Offset |
|
||||
// +---------------------------+
|
||||
// | 0xD3, 0x00 |
|
||||
// +---------------------------+
|
||||
// |
|
||||
// +---------------------------+
|
||||
// | Set Display Start Line |
|
||||
// +---------------------------+
|
||||
// | 0x40 |
|
||||
// +---------------------------+
|
||||
// |
|
||||
// +---------------------------+
|
||||
// | Set Segment Remap |
|
||||
// +---------------------------+
|
||||
// | 0xA0 / 0xA1 |
|
||||
// +---------------------------+
|
||||
// |
|
||||
// +---------------------------+
|
||||
// | Set COM Output Scan |
|
||||
// | Direction |
|
||||
// +---------------------------+
|
||||
// | 0xC0 / 0xC8 |
|
||||
// +---------------------------+
|
||||
// |
|
||||
// +---------------------------+
|
||||
// | Set COM Pins hardware |
|
||||
// | configuration |
|
||||
// +---------------------------+
|
||||
// | 0xDA, 0x02 |
|
||||
// +---------------------------+
|
||||
// |
|
||||
// +---------------------------+
|
||||
// | Set Contrast Control |
|
||||
// +---------------------------+
|
||||
// | 0x81, 0x7F |
|
||||
// +---------------------------+
|
||||
// |
|
||||
// +---------------------------+
|
||||
// | Disable Entire Display On |
|
||||
// +---------------------------+
|
||||
// | 0xA4 |
|
||||
// +---------------------------+
|
||||
// |
|
||||
// +---------------------------+
|
||||
// | Set Normal Display |
|
||||
// +---------------------------+
|
||||
// | 0xA6 |
|
||||
// +---------------------------+
|
||||
// |
|
||||
// +---------------------------+
|
||||
// | Set Osc Frequency |
|
||||
// +---------------------------+
|
||||
// | 0xD5, 0x80 |
|
||||
// +---------------------------+
|
||||
// |
|
||||
// +---------------------------+
|
||||
// | Enable charge pump |
|
||||
// | regulator |
|
||||
// +---------------------------+
|
||||
// | 0x8D, 0x14 |
|
||||
// +---------------------------+
|
||||
// |
|
||||
// +---------------------------+
|
||||
// | Display On |
|
||||
// +---------------------------+
|
||||
// | 0xAF |
|
||||
// +---------------------------+
|
||||
```
|
||||
|
||||
## Demonstration
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user