参考文档:https://resource.heltec.cn/download/oled/SSD1306-Revision_1.1_(Charge_Pump).pdf
https://www.waveshare.com/w/upload/a/af/SSD1306-Revision_1.1.pdf
https://resource.heltec.cn/download/OLED_Instruction_book.pdf
1. 介绍
2.内容
写命令和写数据的解释:
If D/C# pin is HIGH, D[7:0] is interpreted as display data written to Graphic Display Data RAM (GDDRAM). If it is LOW, the input at D[7:0] is interpreted as a command. Then data input will be decoded and written to the corresponding command register.
主要由 D/C# 位决定, 如果为低,那么解析为写命令, 第一次写命令被解析为寄存器地址,紧接着写命令被解析为要写入寄存器的数据. 如果为高,解析为写数据,写入 GDDRAM中.
寄存器分为两种,主要区别在于配置方法不同,