1
0
Fork 0
mirror of https://github.com/RobotechLille/cdf2018-principal synced 2025-09-07 18:30:24 +02:00

Added I2C (SRF05 & LCD)

This commit is contained in:
Geoffrey Frogeye 2018-04-29 21:57:29 +02:00
parent 832306706d
commit 0eb11d9fc6
12 changed files with 326 additions and 8 deletions

View file

@ -0,0 +1 @@
CONFIG_RX=y

View file

@ -0,0 +1,10 @@
#!/bin/sh
>> "${BINARIES_DIR}/rpi-firmware/config.txt"
cat << __EOF__ >> "${BINARIES_DIR}/rpi-firmware/config.txt"
# activates I2C connectivity
dtparam=i2c_arm=on,i2c_arm_baudrate=1000000
__EOF__

View file

@ -5,13 +5,17 @@
start() {
printf "Starting hardware handling: "
modprobe pl2303 # USB↔Serial cable
modprobe pl2303 # USB↔Serial cable
modprobe i2c-bcm2708 # I2C
modprobe i2c-dev # I2C
echo "OK"
}
stop() {
printf "Stopping hardware handling: "
rmmod pl2303 # USB↔Serial cable
rmmod i2c-dev # I2C
rmmod i2c-bcm2708 # I2C
rmmod pl2303 # USB↔Serial cable
echo "OK"
}