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:
parent
832306706d
commit
0eb11d9fc6
12 changed files with 326 additions and 8 deletions
|
@ -0,0 +1 @@
|
|||
CONFIG_RX=y
|
10
raspberrypi/board/robotech/cdfprincipal/post-image.sh
Executable file
10
raspberrypi/board/robotech/cdfprincipal/post-image.sh
Executable 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__
|
||||
|
||||
|
|
@ -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"
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue