aboutsummaryrefslogtreecommitdiff
path: root/drivers/oled/oled_driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/oled/oled_driver.c')
-rw-r--r--drivers/oled/oled_driver.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/oled/oled_driver.c b/drivers/oled/oled_driver.c
index 96ea58ccb..643e52894 100644
--- a/drivers/oled/oled_driver.c
+++ b/drivers/oled/oled_driver.c
@@ -63,6 +63,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
63#define COM_SCAN_DEC 0xC8 63#define COM_SCAN_DEC 0xC8
64#define DISPLAY_OFFSET 0xD3 64#define DISPLAY_OFFSET 0xD3
65#define COM_PINS 0xDA 65#define COM_PINS 0xDA
66#define COM_PINS_SEQ 0x02
67#define COM_PINS_ALT 0x12
68#define COM_PINS_SEQ_LR 0x22
69#define COM_PINS_ALT_LR 0x32
66 70
67// Timing & Driving Commands 71// Timing & Driving Commands
68#define DISPLAY_CLOCK 0xD5 72#define DISPLAY_CLOCK 0xD5
@@ -182,7 +186,7 @@ bool oled_init(uint8_t rotation) {
182 186
183 static const uint8_t PROGMEM display_setup2[] = { 187 static const uint8_t PROGMEM display_setup2[] = {
184 I2C_CMD, 188 I2C_CMD,
185 COM_PINS, 0x02, 189 COM_PINS, OLED_COM_PINS,
186 CONTRAST, 0x8F, 190 CONTRAST, 0x8F,
187 PRE_CHARGE_PERIOD, 0xF1, 191 PRE_CHARGE_PERIOD, 0xF1,
188 VCOM_DETECT, 0x40, 192 VCOM_DETECT, 0x40,