1 Star 5 Fork 3

半糖/基于ESP32-C3的2.9寸墨水屏高考倒计时

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
EPD_drive_gpio.h 1.04 KB
一键复制 编辑 原始数据 按行查看 历史
半糖 提交于 2021-05-20 13:23 . Arduino代码
#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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/HalfSweet/ESP32-C3_NMETCountdown.git
[email protected]:HalfSweet/ESP32-C3_NMETCountdown.git
HalfSweet
ESP32-C3_NMETCountdown
基于ESP32-C3的2.9寸墨水屏高考倒计时
master

搜索帮助