代码拉取完成,页面将自动刷新
#ifndef _EPD_DRIVE_GPIO_H_
#define _EPD_DRIVE_GPIO_H_
#include <SPI.h>
#include <Arduino.h>
/********************------------------------------------------------------------
Hardware interface
------------------------------------------------------------------------------*/
//GPIO config
#define CS 2
#define EPD_CS_0 digitalWrite(CS, LOW)
#define EPD_CS_1 digitalWrite(CS, HIGH)
#define isEPD_CS digitalRead(CS)
#define RST 3
#define EPD_RST_0 digitalWrite(RST, LOW)
#define EPD_RST_1 digitalWrite(RST, HIGH)
#define isEPD_RST digitalRead(RST)
#define DC 1
#define EPD_DC_0 digitalWrite(DC, LOW)
#define EPD_DC_1 digitalWrite(DC, HIGH)
#define BUSY 10
#define isEPD_BUSY digitalRead(BUSY)
#define EPD_BUSY_LEVEL 0
#define CLK 0
#define EPD_CLK_0 digitalWrite(CLK, LOW)
#define EPD_CLK_1 digitalWrite(CLK, HIGH)
#define DIN 4
#define EPD_DIN_0 digitalWrite(DIN, LOW)
#define EPD_DIN_1 digitalWrite(DIN, HIGH)
extern void SPI_Write(unsigned char value);
extern void driver_delay_xms(unsigned long xms);
#endif
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。