File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,22 @@ Coming soon...
33
33
34
34
## Arduino compatibility
35
35
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
+ ```
37
52
38
53
## Firmware example
39
54
You can’t perform that action at this time.
0 commit comments