logo

qmk_firmware

custom branch of QMK firmware git clone https://anongit.hacktivis.me/git/qmk_firmware.git

qp_sh1106_opcodes.h (866B)


  1. // Copyright 2023 Nick Brassel (@tzarc)
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #pragma once
  4. #define SH1106_DISPLAY_ON 0xAF
  5. #define SH1106_DISPLAY_OFF 0xAE
  6. #define SH1106_SET_OSC_DIVFREQ 0xD5
  7. #define SH1106_SET_MUX_RATIO 0xA8
  8. #define SH1106_DISPLAY_OFFSET 0xD3
  9. #define SH1106_DISPLAY_START_LINE 0x40
  10. #define SH1106_SET_CHARGE_PUMP 0x8D
  11. #define SH1106_SET_SEGMENT_REMAP_NORMAL 0xA0
  12. #define SH1106_SET_SEGMENT_REMAP_INV 0xA1
  13. #define SH1106_COM_SCAN_DIR_INC 0xC0
  14. #define SH1106_COM_SCAN_DIR_DEC 0xC8
  15. #define SH1106_COM_PADS_HW_CFG 0xDA
  16. #define SH1106_SET_CONTRAST 0x81
  17. #define SH1106_SET_PRECHARGE_PERIOD 0xD9
  18. #define SH1106_VCOM_DESELECT_LEVEL 0xDB
  19. #define SH1106_ALL_ON_RESUME 0xA4
  20. #define SH1106_NON_INVERTING_DISPLAY 0xA6
  21. #define SH1106_DEACTIVATE_SCROLL 0x2E
  22. #define SH1106_SETCOLUMN_LSB 0x00
  23. #define SH1106_SETCOLUMN_MSB 0x10
  24. #define SH1106_PAGE_ADDR 0xB0