14
4.19 I/O pin usage
Pin Name
Header Pins
I/O device(s)
P4.5
J14-14, J31-1
AN0, Light sensor
P4.7
J14-16, J31-3
AN1, Potentiometer
P4.3
J14-11, J31-5
AN2, Temperature sensor
P2.7
J19-1, J1-1
PWM1 for servo
P2.6
J19-3, J1-2
PWM2 for servo
P2.5
J19-8, J4-1
PWM3 for servo
P5.5
J14-20, J4-2
PWM4 for servo
P5.6
J19-7, J24-1
Speaker
P6.6
J19-9
SD memory
P6.7
J19-11, J25-3
LCD 16x2, TFT
P2.3
J19-13
7-segment display
P3.0
J19-6
TFT
’s D/C, LCD’s R/S
P3.2
J14-5, J34-3
LED0, H-Bridge, ESP8266
P3.3
J14-7, J34-2
LED1, H-Bridge, ESP8266
P2.5
J19-4
LED2, H-Bridge
P2.4
J19-5
LED3, H-Bridge
P6.1
J14-6
SW5, Pushbutton
P4.0
J14-8
SW4, Pushbutton
P4.2
J14-10
SW3, Pushbutton
P4.4
J14-12
SW2, Pushbutton
P1.5 (SPI-SCLK)
J14-13
7-segment display, LCD, TFT
P1.7 (SPI-MISO)
J19-14
7-segment display, LCD, TFT
P1.6 (SPI-MOSI)
J19-12
7-segment display, LCD, TFT
P6.5 (I2C-SCL)
J14-17
EEPROM, OLED
P6.47 (I2C-SDA)
J14-19
EEPROM, OLED