Skip to content

Commit d339366

Browse files
authored
[UPD] README.md
1 parent 639b2d8 commit d339366

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,22 @@ Coming soon...
3333

3434
## Arduino compatibility
3535

36-
Coming soon...
36+
During the design phase of the Gulu, a custom set of IO pins was used for the 4-wire SPI connection.
37+
In order for firmware based on the Arduino framework to work on the Gulu, adjustments must be made to the pin definitions.
38+
39+
```cpp
40+
// Default esp32c3>pins_arduino.h
41+
static const uint8_t SS = 7;
42+
static const uint8_t MOSI = 6;
43+
static const uint8_t MISO = 5;
44+
static const uint8_t SCK = 4;
45+
46+
// Modified esp32c3>pins_arduino.h
47+
static const uint8_t SS = 7; // EPD_DC
48+
static const uint8_t MOSI = 4; // EPD_DIN
49+
static const uint8_t MISO = 6; // EPD_CS
50+
static const uint8_t SCK = 5; // EPD_SCK
51+
```
3752

3853
## Firmware example
3954

0 commit comments

Comments
 (0)