|
楼主 |
发表于 2022-8-23 02:00
|
显示全部楼层
你好,我好像在Github上面找到了一个成功的例子,油管有视频。不过她的板子和我不太一样,接口也不一样。
https://github.com/adafruit/Adaf ... acep_7ColorTest.ino
- #define EPD_CS 9
- #define EPD_DC 10
- #define SRAM_CS -1 // Use the build in memory, we need 133KB!
- #define EPD_RESET 6 // can set to -1 and share with microcontroller Reset!
- #define EPD_BUSY 5 // can set to -1 to not use a pin (will wait a fixed delay)
复制代码
这里只用了5个接口。对比下可以发现:
1. 没有DIN、CLK;
2. 多了一个SRAM_CS(请问这是啥意思?为啥-1呢?)。
我估计是板子不同导致的。于是我疑似找到了它的源码:
https://github.com/adafruit/Adafruit_EPD/blob/master/src/drivers/Adafruit_ACeP.h
- Adafruit_ACEP(int width, int height, int16_t SID, int16_t SCLK, int16_t DC,
- int16_t RST, int16_t CS, int16_t SRCS, int16_t MISO,
- int16_t BUSY = -1);
- Adafruit_ACEP(int width, int height, int16_t DC, int16_t RST, int16_t CS,
- int16_t SRCS, int16_t BUSY = -1, SPIClass *spi = &SPI);
复制代码 |
|