You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
676 B
24 lines
676 B
#!/bin/bash
|
|
|
|
sudo insmod modq.ko
|
|
echo grove_lcd 0x3e | sudo tee /sys/class/i2c-adapter/i2c-1/new_device > /dev/nul
|
|
echo grove_rgb 0x62 | sudo tee /sys/class/i2c-adapter/i2c-1/new_device > /dev/nul
|
|
|
|
while [ "$B" != "exid" ]
|
|
do
|
|
echo "Enter print string:"
|
|
read B
|
|
if [ "$B" != "exid" ]
|
|
then
|
|
sudo echo "@C" | sudo tee /dev/grove_lcd > /dev/nul
|
|
fi
|
|
if [ "$B" != "exid" ]
|
|
then
|
|
sudo echo $B | sudo tee /dev/grove_lcd > /dev/nul
|
|
fi
|
|
done
|
|
echo "Close display menager."
|
|
|
|
echo 0x62 | sudo tee /sys/class/i2c-adapter/i2c-1/delete_device > /dev/nul
|
|
echo 0x3e | sudo tee /sys/class/i2c-adapter/i2c-1/delete_device > /dev/nul
|
|
sudo rmmod modq.ko |