Serial Expansion HAT User Manual
2 / 18
CONTENT
Overview ....................................................................................................................................................... 1
Features ................................................................................................................................................ 1
Specification ....................................................................................................................................... 1
Hardware ...................................................................................................................................................... 4
Pinout ........................................................................................................................................... 5
LED ................................................................................................................................................. 5
I2C device address setting .................................................................................................... 6
How to use .................................................................................................................................................. 7
Download Demo codes .......................................................................................................... 7
Libraries Installation (Require network) ........................................................................... 8
Enable I2C Interface ................................................................................................................. 8
Demo codes .............................................................................................................................................. 11
C/GPIO/ .............................................................................................................................................. 11
Files .............................................................................................................................................. 12
Codes Analysis ......................................................................................................................... 12
C/UART/ ............................................................................................................................................. 13
Files .............................................................................................................................................. 14
Send code ................................................................................................................................. 15
Receive code ............................................................................................................................ 16
python................................................................................................................................................. 17
Files .............................................................................................................................................. 17