ssd1306 example
rtconfig.h
copy Previous file to this project, called rtconfig.h.
add other functions, such as
#define RT_USING_I2C
#define RT_USING_I2C2 //can choice RT_USING_I2C1 or RT_USING_I2C3
#define RT_USING_RTC // update date, but this isn't what is needed.
#define RT_USING_SOFT_RTC // can't need this
//last two lines can be commented.
SSD1306 IIC读写时序
SSD1306 INIT初始化流程
usage
ssd1306 i2c 128X32
Others developed the library, including I2C and SPI, But I simply delete the SPI functions, currently normal.
I choice RT_USING_I2C, speed is set to 1000000(1000K).
#define I2C2_SPEED 1000000 //It was 100K,now it's 1000K
library name | url |
---|---|
RTT_SSD1306 | 传送门 |