9. Peripheral Examples
In this demo, Sense Hat (B) is used. For the detailed specifications, refer to
https://www.waveshare.com/wiki/Sense_HAT_(B)
Note:
The official libraries of BCM2835, Python, and wiringPi are not supported, and we use the system call instead. The
examples are required to be modified.
9.1. Sense Hat (B) Example
9.1.1. Hardware Setup
The following table and figure describe how to connect Sense HAT to the 40-pin header:
Table 9-1 Connect Sense Hat (B) to the 40-Pin Header
Sense HAT (B)
Pin Number
3V3
1
GND
9
SDA
3
SCL
5
Figure 9-1 Connect Sense Hat (B) to the 40-Pin 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)
33
© 2018-2022 StarFive Technology
All rights reserved
StarFive