Hi,
I can’t run the grove_button.py example. It hang on the digitalRead(). I have a Pi4 Model B 1G. I updated the firmware. Version is 1.4.0 . Here is my log file:
Check space left
Filesystem Size Used Avail Use% Mounted on
/dev/root 15G 3.6G 11G 26% /
devtmpfs 299M 0 299M 0% /dev
tmpfs 428M 0 428M 0% /dev/shm
tmpfs 428M 5.9M 422M 2% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 428M 0 428M 0% /sys/fs/cgroup
/dev/mmcblk0p1 253M 48M 205M 19% /boot
tmpfs 86M 4.0K 86M 1% /run/user/1000
Check for dependencies
python 2.7.16-1 install ok installed
python-pip 18.1-5+rpt1 install ok installed
git 1:2.20.1-2+deb10u3 install ok installed
libi2c-dev 4.1-1 install ok installed
python-serial 3.4-4 install ok installed
python-rpi.gpio 0.7.0-0.1~bpo10+4 install ok installed
i2c-tools 4.1-1 install ok installed
python-smbus 4.1-1 install ok installed
scratch 1.4.0.6~dfsg1-6 install ok installed
I2C still in blacklist
SPI still in blacklist
Check for addition in /modules
I2C-dev already there
i2c-bcm2708 already there
spi-dev already there
Hardware revision
RPI4 Pi 4 Model B 1G
Check the /dev folder
i2c-1
ttyAMA0
USB device status
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/1p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
Raspbian for Robots Version
cat: /home/pi/di_update/Raspbian_For_Robots/Version: No such file or directory
Hostname
raspberrypi
Checking I2C bus for devices
Checking I2C bus 0
NOTE: it is normal for this one to fail
Error: Could not open file /dev/i2c-0' or
/dev/i2c/0’: No such file or directory
Checking I2C bus 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: – 04 – -- – -- – -- – -- – -- –
10: – -- – -- – -- – -- – -- – -- – -- – --
20: – -- – -- – -- – -- – -- – -- – -- – --
30: – -- – -- – -- – -- – -- – -- – -- – --
40: – -- – -- – -- – -- – -- – -- – -- – --
50: – -- – -- – -- – -- – -- – -- – -- – --
60: – -- – -- – -- – -- – -- – -- – -- – --
70: – -- – -- – -- – --
Checking for firmware version
Thanks for you help!