diff --git a/img/diagram.c b/img/diagram.c new file mode 100644 index 0000000..b0ffefc --- /dev/null +++ b/img/diagram.c @@ -0,0 +1,96 @@ +// +---------------------------+ +// | Display OFF | +// +---------------------------+ +// | 0xAE | +// +---------------------------+ +// | +// +---------------------------+ +// | Set MUX Ratio | +// +---------------------------+ +// | 0xA8 | +// | 0x3F for 128x64 | +// | 0x1F for 128x32 | +// +---------------------------+ +// | +// +---------------------------+ +// | Set Memory Address Mode | +// +---------------------------+ +// | 0x20 | +// | 0x00 | +// +---------------------------+ +// | +// +---------------------------+ +// | Start Line | +// +---------------------------+ +// | 0x40 | +// +---------------------------+ +// | +// +---------------------------+ +// | 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 | +// +---------------------------+ diff --git a/img/ssd1306.png b/img/ssd1306.png new file mode 100644 index 0000000..4c89a83 Binary files /dev/null and b/img/ssd1306.png differ