iT邦幫忙

第 12 屆 iThome 鐵人賽

DAY 1
0

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);
}

上一篇
D28-跟老闆試的常用一些小指令
下一篇
D30-本次雜感
系列文
霍普菜鳥的資訊工作雜記31
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言