5. I2C Operations
This chapter describes how to configure and debug I2C GPIO.
5.1. Configuring I2C GPIO
Perform the following procedures to configure I2C:
•
•
5.1.1. Hardware Setup
The following table and figure describe how to connect Sense HAT to the 40-pin header:
Table 5-1 Connect Sense Hat (B) to the 40-Pin Header
40-Pin GPIO Header
Sense HAT (B)
Pin Number
Pin Name
3V3
1
3.3V Power
GND
9
GND
SDA
3
GPIO58 (I2C SDA)
SCL
5
GPIO57 (I2C SCL)
Figure 5-1 Connect Sense Hat (B) to the 40-Pin GPIO Header
1
3
5
7
9
11
13
15
2
4
6
8
10
12
14
16
5V Power
5V Power
GND
GPIO5 (UART TX)
GPIO6 (UART RX)
GPIO38
GND
GPIO21
3.3V Power
GPIO58 (I2C SDA)
GPIO57 (I2C SCL)
GPIO55
GND
GPIO42
GPIO43
GPIO20
3V3
SDA
SCL
GND
Sense Hat (B)
© 2018-2022 StarFive Technology
All rights reserved
16
StarFive