代码拉取完成,页面将自动刷新
#pragma once
#ifdef SSD1351
// On Adafruit's Adafruit 1.27" and 1.5" Color OLED Breakout Board 128x96 SSD1351 display, the following speed configurations have been tested (on a Pi 3B):
// core_freq=360: CDIV=20, results in 18.00MHz, works
// core_freq=370: CDIV=20, would result in 18.50MHz, this made the screen work for a while, but then hang
// core_freq=375: CDIV=20, would result in 18.75MHz, this made the screen work for a few seconds, but then go blank shortly after
// core_freq=355: CDIV=18, would result in 19.72MHz, this made the screen work for a few seconds, but then go blank shortly after
// Bandwidth needed to update at 60fps: 128*96*16*60 = 11,796,480 bits/sec.
// , so the above obtained best refresh rate allows driving the screen at 60fps.
// Data specific to the SSD1351 controller
#define DISPLAY_SET_CURSOR_X 0x15
#define DISPLAY_SET_CURSOR_Y 0x75
#define DISPLAY_WRITE_PIXELS 0x5C
#define DISPLAY_NATIVE_WIDTH 128
#define DISPLAY_NATIVE_HEIGHT 96
#define MUST_SEND_FULL_CURSOR_WINDOW
// The DISPLAY_WRITE_PIXELS command on this display seems to continue from the x&y where previous command left off. This is unlike
// other displays, where issuing a DISPLAY_WRITE_PIXELS command resets the x&y cursor coordinates.
#define DISPLAY_WRITE_PIXELS_CMD_DOES_NOT_RESET_WRITE_CURSOR
// This is defined for displays that have the set cursor command 8 bits wide (0-255) instead of 16 bits (0-65535)
#define DISPLAY_SET_CURSOR_IS_8_BIT
#define InitSPIDisplay InitSSD1351
void InitSSD1351(void);
void TurnDisplayOn(void);
void TurnDisplayOff(void);
#endif
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。