qmk_firmware

QMK firmware for my keyboards (Corne, Sweep Ferris) and trackball (Ploopy Adept)
Log | Files | Refs | Submodules | LICENSE

qp_sh1107_opcodes.h (917B)


      1 // Copyright 2024 Steve Branam (@smbranam)
      2 // SPDX-License-Identifier: GPL-2.0-or-later
      3 #pragma once
      4 
      5 #define SH1107_DISPLAY_ON 0xAF
      6 #define SH1107_DISPLAY_OFF 0xAE
      7 #define SH1107_SET_OSC_DIVFREQ 0xD5
      8 #define SH1107_SET_MUX_RATIO 0xA8
      9 #define SH1107_DISPLAY_OFFSET 0xD3
     10 #define SH1107_SET_START_LINE 0xDC // Key/sole difference from SH1106 (which uses 0x40)
     11 #define SH1107_SET_CHARGE_PUMP 0x8D
     12 #define SH1107_SET_SEGMENT_REMAP_NORMAL 0xA0
     13 #define SH1107_SET_SEGMENT_REMAP_INV 0xA1
     14 #define SH1107_COM_SCAN_DIR_INC 0xC0
     15 #define SH1107_COM_SCAN_DIR_DEC 0xC8
     16 #define SH1107_COM_PADS_HW_CFG 0xDA
     17 #define SH1107_SET_CONTRAST 0x81
     18 #define SH1107_SET_PRECHARGE_PERIOD 0xD9
     19 #define SH1107_VCOM_DESELECT_LEVEL 0xDB
     20 #define SH1107_ALL_ON_RESUME 0xA4
     21 #define SH1107_NON_INVERTING_DISPLAY 0xA6
     22 #define SH1107_DEACTIVATE_SCROLL 0x2E
     23 #define SH1107_SETCOLUMN_LSB 0x00
     24 #define SH1107_SETCOLUMN_MSB 0x10
     25 #define SH1107_PAGE_ADDR 0xB0