30
10.5 Digital Inputs
PiGear Nano has four digital inputs.
The four digital inputs are implemented by chip PCF8574, which talks to Raspberry Pi Compute
Module 4 via the I2C-1 interface. Each digital input can bear up to 12V. Voltage below 0.5V is
considered as LOW.
Note: all four digital inputs are pulled down by default.
You can inquire the pin status via I2C-1 (address=0x20, omitting register index), and the pin status
are stored in bit 0~3 in the register.
Bit
7
6
5
4
3
2
1
0
Value
X
X
X
X
0 / 1
0 / 1
0 / 1
0 / 1
Pin
N/A
N/A
N/A
N/A
DI-4
DI-3
DI-2
DI-1
Summary of Contents for PiGear Nano
Page 5: ...2...