View Single Post
Old 06-22-2021, 12:17 PM   #4
Renate
Onyx-maniac
Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.
 
Posts: 3,969
Karma: 17500001
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5, Go6
If you end up doing this (or something similar) you might be interested in being able to test it from the command line:
Code:
# cd /sys/class/gpio
# echo 57 > export
# cat gpio57/value
0
# cat gpio57/value
1
# echo 57 > unexport
A value of 1 is when a magnet is present.
gpio57 is correct for Poke3, no guarantee for anything else.
Renate is online now   Reply With Quote