in config.h check HARDWARE_REV 21
All options are left to default values, else you have to change the connections
Leave it open, it will read some random values...
Add an LED with Resistor (~470Ω) to GND
Leave it open, it will read some random values...
Connect buzzer with resistor (~200Ω) to GND
Connect a push switch to GND
Connect a push switch to GND
Connect Display pin -> To arduino Pin The Display only supports 3.3V, use a level shifter for I/O Pins!
LED+ -> 3.3V
VCC -> 3.3V
GND -> GND
sclk -> 7 [PH4] (clock)
sdin -> 17 [PH0] (data-in)
dc -> 16 [PH1] (data select)
reset -> 6 [PH3]
sce -> 8 [PH5] (enable)**
SCE is connected to PH2, but PH2 is not connected on the Arduino, so change the line
unsigned char sce = 2); /* enable (display pin 5) */
to
unsigned char sce = 5); /* enable (display pin 5) */
You get all information on the Serial port to Debug