You can run Chrome in application mode.
Windows:
Chrome.exe --app=http://hostname
Mac:
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --app=http://hostname
Linux:
google-chrome --app=http://hostname
Raspberry pi GPIO reference:
https://pinout.xyz/ Raspberry pi gpio pinout
http://abyz.me.uk/rpi/pigpio Raspberry pi gpio library
兩個方法可控制GPIO
1.透過Node.js npm "raspi", "raspi-gpio","raspi-npm"三個套件
寫function去控制
2.shell command:
(1)gpio Ex: gpio -g mode 18(BCM-18) 0.5(pwm value)
(2)sudo pigpiod (PIGPIO daemon)
pigs m 18 5(Altid)
pigs hp(haredwarepick) 18(BCM-18) 100(頻率) 500000(佔頻比)
command: gpio readall -->查詢wiringPi的Pin腳編號狀態
gpio without sudo
Not sure what you have against running as root--either via su, sudo $SHELL, or setuid--but you could try:
sudo chown pi /dev/mem
test line
function doPost(e) {
var CHANNEL_ACCESS_TOKEN = '你的 Channel access token';
var msg= JSON.parse(e.postData.contents);
console.log(msg);
}