Sign inSign up

hisashin/rpi-node-blink

By hisashin

•Updated over 8 years ago

Docker image to blink LED on Raspberry Pi with Node.js

Image
0

526

hisashin/rpi-node-blink repository overview

Github⁠, DockerHub⁠

  • Setup Docker on Raspberry Pi
  • Connect LED between GPIO2 and GND
  • Run This Image
  • Got some busy error?

⁠Setup Docker on Raspberry Pi

Refer my another project⁠

⁠Connect LED

Between GPIO2 and GND. Not only LED but also registor should be applied.

⁠Run this Image

docker run -it --privileged --name rpi-node-blink hisashin/rpi-node-blink

After a while, it will start blinking. Edit /blink.js to change intervals and more.

⁠Got some busy error?

Shutdown sequence in /start.sh seems not working perfectly. Additionally run this command to release GPIO when you stop.

echo 2 > /sys/class/gpio/unexport

Tag summary

Content type

Image

Digest

Size

244.3 MB

Last updated

over 8 years ago

docker pull hisashin/rpi-node-blink