The Arduino program was updated to fit the driver board of Rev2.3.

This commit is contained in:
SSYYL 2023-04-27 16:12:36 +08:00
parent 8b81d7a22f
commit a550cc47fa
12 changed files with 30 additions and 1 deletions

View File

@ -57,6 +57,10 @@ int EpdIf::IfInit(void) {
pinMode(RST_PIN, OUTPUT);
pinMode(DC_PIN, OUTPUT);
pinMode(BUSY_PIN, INPUT);
pinMode(PWR_PIN, OUTPUT);
DigitalWrite(PWR_PIN, 1);
SPI.begin();
SPI.beginTransaction(SPISettings(2000000, MSBFIRST, SPI_MODE0));
return 0;

View File

@ -35,6 +35,7 @@
#define DC_PIN 9
#define CS_PIN 10
#define BUSY_PIN 7
#define PWR_PIN 6
class EpdIf {
public:

View File

@ -58,6 +58,9 @@ int EpdIf::IfInit(void) {
pinMode(DC_PIN, OUTPUT);
pinMode(BUSY_PIN, INPUT);
pinMode(PWR_PIN, OUTPUT);
DigitalWrite(PWR_PIN, 1);
SPI.begin();
SPI.beginTransaction(SPISettings(2000000, MSBFIRST, SPI_MODE0));
return 0;

View File

@ -35,6 +35,7 @@
#define DC_PIN 9
#define CS_PIN 10
#define BUSY_PIN 7
#define PWR_PIN 6
class EpdIf {
public:

View File

@ -57,6 +57,10 @@ int EpdIf::IfInit(void) {
pinMode(RST_PIN, OUTPUT);
pinMode(DC_PIN, OUTPUT);
pinMode(BUSY_PIN, INPUT);
pinMode(PWR_PIN, OUTPUT);
DigitalWrite(PWR_PIN, 1);
SPI.begin();
SPI.beginTransaction(SPISettings(2000000, MSBFIRST, SPI_MODE0));

View File

@ -35,6 +35,7 @@
#define DC_PIN 9
#define CS_PIN 10
#define BUSY_PIN 7
#define PWR_PIN 6
class EpdIf {
public:

View File

@ -57,6 +57,10 @@ int EpdIf::IfInit(void) {
pinMode(RST_PIN, OUTPUT);
pinMode(DC_PIN, OUTPUT);
pinMode(BUSY_PIN, INPUT);
pinMode(PWR_PIN, OUTPUT);
DigitalWrite(PWR_PIN, 1);
SPI.begin();
SPI.beginTransaction(SPISettings(2000000, MSBFIRST, SPI_MODE0));

View File

@ -35,6 +35,7 @@
#define DC_PIN 9
#define CS_PIN 10
#define BUSY_PIN 7
#define PWR_PIN 6
class EpdIf {
public:

View File

@ -57,6 +57,10 @@ int EpdIf::IfInit(void) {
pinMode(RST_PIN, OUTPUT);
pinMode(DC_PIN, OUTPUT);
pinMode(BUSY_PIN, INPUT);
pinMode(PWR_PIN, OUTPUT);
DigitalWrite(PWR_PIN, 1);
SPI.begin();
SPI.beginTransaction(SPISettings(7000000, MSBFIRST, SPI_MODE0));
return 0;

View File

@ -35,6 +35,7 @@
#define DC_PIN 9
#define CS_PIN 10
#define BUSY_PIN 7
#define PWR_PIN 6
class EpdIf {
public:

View File

@ -56,7 +56,11 @@ int EpdIf::IfInit(void) {
pinMode(CS_PIN, OUTPUT);
pinMode(RST_PIN, OUTPUT);
pinMode(DC_PIN, OUTPUT);
pinMode(BUSY_PIN, INPUT);
pinMode(BUSY_PIN, INPUT);
pinMode(PWR_PIN, OUTPUT);
DigitalWrite(PWR_PIN, 1);
SPI.begin();
SPI.beginTransaction(SPISettings(2000000, MSBFIRST, SPI_MODE0));
return 0;

View File

@ -35,6 +35,7 @@
#define DC_PIN 9
#define CS_PIN 10
#define BUSY_PIN 7
#define PWR_PIN 6
class EpdIf {
public: