-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_threshold.sh
More file actions
executable file
·30 lines (24 loc) · 980 Bytes
/
test_threshold.sh
File metadata and controls
executable file
·30 lines (24 loc) · 980 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
rmmod max44009
insmod /home/debian/max44009.ko
echo "writing 100 to thresh rising"
echo "100" > /sys/bus/iio/devices/iio\:device2/events/in_illuminance_thresh_rising_value
sleep 1
cat /sys/bus/iio/devices/iio\:device2/events/in_illuminance_thresh_rising_value
sleep 1
echo "writing 1000 to thr rising"
echo "1000" > /sys/bus/iio/devices/iio\:device2/events/in_illuminance_thresh_rising_value
sleep 1
cat /sys/bus/iio/devices/iio\:device2/events/in_illuminance_thresh_rising_value
echo "TEST MAX THR"
sleep 1
echo "writing 8355840 to thr rising"
echo "8355840" > /sys/bus/iio/devices/iio\:device2/events/in_illuminance_thresh_rising_value
sleep 1
cat /sys/bus/iio/devices/iio\:device2/events/in_illuminance_thresh_rising_value
echo "TEST MIN THR"
sleep 1
echo "writing 15 to thr rising"
echo "15" > /sys/bus/iio/devices/iio\:device2/events/in_illuminance_thresh_rising_value
sleep 1
cat /sys/bus/iio/devices/iio\:device2/events/in_illuminance_thresh_rising_value