The Arduino program was updated to fit the driver board of Rev2.3.
This commit is contained in:
parent
8b81d7a22f
commit
a550cc47fa
@ -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;
|
||||
|
@ -35,6 +35,7 @@
|
||||
#define DC_PIN 9
|
||||
#define CS_PIN 10
|
||||
#define BUSY_PIN 7
|
||||
#define PWR_PIN 6
|
||||
|
||||
class EpdIf {
|
||||
public:
|
||||
|
@ -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;
|
||||
|
@ -35,6 +35,7 @@
|
||||
#define DC_PIN 9
|
||||
#define CS_PIN 10
|
||||
#define BUSY_PIN 7
|
||||
#define PWR_PIN 6
|
||||
|
||||
class EpdIf {
|
||||
public:
|
||||
|
@ -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));
|
||||
|
||||
|
@ -35,6 +35,7 @@
|
||||
#define DC_PIN 9
|
||||
#define CS_PIN 10
|
||||
#define BUSY_PIN 7
|
||||
#define PWR_PIN 6
|
||||
|
||||
class EpdIf {
|
||||
public:
|
||||
|
@ -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));
|
||||
|
||||
|
@ -35,6 +35,7 @@
|
||||
#define DC_PIN 9
|
||||
#define CS_PIN 10
|
||||
#define BUSY_PIN 7
|
||||
#define PWR_PIN 6
|
||||
|
||||
class EpdIf {
|
||||
public:
|
||||
|
@ -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;
|
||||
|
@ -35,6 +35,7 @@
|
||||
#define DC_PIN 9
|
||||
#define CS_PIN 10
|
||||
#define BUSY_PIN 7
|
||||
#define PWR_PIN 6
|
||||
|
||||
class EpdIf {
|
||||
public:
|
||||
|
@ -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;
|
||||
|
@ -35,6 +35,7 @@
|
||||
#define DC_PIN 9
|
||||
#define CS_PIN 10
|
||||
#define BUSY_PIN 7
|
||||
#define PWR_PIN 6
|
||||
|
||||
class EpdIf {
|
||||
public:
|
||||
|
Loading…
Reference in New Issue
Block a user