This commit is contained in:
2025-04-20 03:14:02 -04:00
parent cff2db5c0f
commit a3ca83b65b
2 changed files with 12 additions and 6 deletions

View File

@@ -24,9 +24,9 @@
//GxEPD_Class display(io, /*RST=D4*/ 2, /*BUSY=D2*/ 4); // default selection of D4(=2), D2(=4)
//#elif defined(ESP32)
GxIO_Class io(SPI, /*CS=5*/ 2, /*DC=*/ 4, /*RST=*/ 1); // arbitrary selection of 17, 16
GxEPD_Class display(io, /*RST=*/ 1, /*BUSY=*/ 3); // arbitrary selection of (16), 4
//#elif defined(ESP32C3)
GxIO_Class io(SPI, /*CS=5*/ 3, /*DC=*/ 5, /*RST=*/ 2); // arbitrary selection of 17, 16
GxEPD_Class display(io, /*RST=*/ 2, /*BUSY=*/ 7); // arbitrary selection of (16), 4
//GxIO_Class io(SPI, SS, 22, 21);
//GxEPD_Class display(io, 16, 4);

View File

@@ -7,7 +7,13 @@ void setup();
void setup() {
pinMode(12, OUTPUT);
pinMode(8, OUTPUT);
Serial.println("LED ON");
digitalWrite(8, HIGH);
delay(750);
Serial.println("LED OFF");
digitalWrite(8, LOW);
delay(750);
Serial.begin(115200);
Serial.println("Running setup ...");
@@ -45,9 +51,9 @@ void setup() {
void loop() {
Serial.println("LED ON");
digitalWrite(12, HIGH);
digitalWrite(8, HIGH);
delay(750);
Serial.println("LED OFF");
digitalWrite(12, LOW);
digitalWrite(8, LOW);
delay(750);
}