12-11-2024, 09:10 PM
(This post was last modified: 12-11-2024, 09:11 PM by Tim Curtis.)
Below is the default 9.1.5 /boot/firmware/config.txt
It shows I2C bus enabled: dtparam=i2c_arm=on
And it looks like the python3-smbus and i2c-tools packages are already present
It shows I2C bus enabled: dtparam=i2c_arm=on
Code:
#########################################
# This file is managed by moOde
#########################################
# Device filters
[cm4]
otg_mode=1
[pi4]
hdmi_force_hotplug:0=1
hdmi_force_hotplug:1=1
hdmi_enable_4kp60=0
[all]
dtoverlay=vc4-kms-v3d
max_framebuffers=2
display_auto_detect=1
disable_fw_kms_setup=1
arm_64bit=1
# General settings
arm_boost=0
disable_splash=1
disable_overscan=1
hdmi_drive=2
hdmi_blanking=1
hdmi_force_edid_audio=1
hdmi_force_hotplug=1
hdmi_group=0
dtparam=i2c_arm=on
dtparam=i2s=on
dtparam=audio=on
# Do not alter this section
# Integrated adapters
#dtoverlay=disable-bt
#dtoverlay=disable-wifi
# Audio overlays
#dtoverlay=none
#dtoverlay=force_eeprom_read=0
# PCI Express
#dtparam=pciex1
#dtparam=pciex1_gen=3
# Pi Touch1
#dtoverlay=rpi-backlight
#dtoverlay=vc4-kms-dsi-7inch,invx,invy
# Fan speed
#dtparam=fan_temp0=50000,fan_temp0_hyst=5000,fan_temp0_speed=75
And it looks like the python3-smbus and i2c-tools packages are already present
Code:
pi@moode9:~ $ dpkg -l | grep python3-smbus
pi@moode9:~ $ dpkg -l | grep python3-smbus
ii python3-smbus:arm64 4.3-2+b3 arm64 Python 3 bindings for Linux SMBus access through i2c-dev
ii python3-smbus2 0.4.2-1 arm64 another pure Python implementation of the python-smbus package
pi@moode9:~ $
pi@moode9:~ $ dpkg -l | grep i2c-tools
ii i2c-tools 4.3-2+b3 arm64 heterogeneous set of I2C tools for Linux
pi@moode9:~ $