while true; do eval "input keyevent 166"; sleep 1; echo "Going to TV input"; sleep 3; eval "input keyevent 3"; sleep 1; echo "Going to Home Screen"; sleep 3; eval "input keyevent 246"; sleep 1; echo "Going to HDMI input"; sleep 3; top -n 1 |grep cid; sleep 3; done;
How to use POCO lib
[Install]: https://github.com/MDHSRobotics/TeamWiki/wiki/Installing-POCO-library-on-Ubuntu If you download and unpack the poco package, you'll find a directory: build/config Here you can find various preset configs for poco builds. I made a copy of 'ARM-linux' and edited it to suit my needs (these are only the changes): LINKMODE ?= STATIC # since we are statically linking poco... ... TOOL = arm - none - linux - gnueabi # this is the compiler we use [Guide]: https://pocoproject.org/docs/00100-GuidedTour.html [Compile a HTTP example]: [Port to ARM]:
留言
張貼留言