Closed ghanjiboy closed 3 years ago
I did, but wasnt sure its same response as I am asking about the zero. I was actually able to do this C++ by cross compiling and using wiring PI. So now I can get to the gpio pins. The last part now is about turning off the display - i was looking to use tvservice which just doesnt seem to work - it just hangs. I tried copying a version from rpi3 and also cross compiling. i can get the tvservice to show help info, but not when passing any parameters - it just sits there. Do you have any idea about this or an alternate way to turn the display off/on?
Thanks!
I was able to solve this. The use case is for a kiosk where if there wasnt any motion, it would disable the screen and enable if there was. I used WiringPi library in a C program with a motion sensor and used the already existing command vcgencmd with parameter display_power to control the screen.
@ghanjiboy care to share your work here? i am also interested in such a solution. Its for a waiting room. If there is no movement i would like the Screen to go off after lets say 10 minutes.
Find attached some work - here's my setup:
Requirements: WSL and Docker if on windows - or you can run this on a linux box too, just might need some modifications
Hi, first wanted to say thank you, the rpi zero image works great.
I am looking to add a motion sensor to the setup using gpio and not sure what the right way to do that as there isn't any python and the node version doesn't support onoff. Do you have any recommendations?