jieke-wang / RaspberryPi-NetCore-Blink

Using docker as a deployment mechanism, we'll use .Net Core 2.1 to blink a light using RaspberryPi's GPIO shell integrations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using docker as a deployment mechanism, this code shows how to write a simple .Net Core 2.1 console app which blinks a light using GPIO file integrations and the WiringPi api

Setup and running

On your developer machine:

  • Use docker to build and push a BlinkGpioFS image which will use the file system to interact with GPIO,
  • Use docker to build and push a BlinkGpioWiringPi image which uses wiring pi to interact with the GPIO.

On your Raspberry Pi:

  • Connect a LED to GPIO 17 (and use a resistor too)
  • Install docker using curl -sSL https://get.docker.com | sh
  • Run the image using sudo docker run -it -v /sys:/sys --privileged ${imageName}:${version}

About

Using docker as a deployment mechanism, we'll use .Net Core 2.1 to blink a light using RaspberryPi's GPIO shell integrations

License:MIT License


Languages

Language:C# 92.7%Language:Dockerfile 7.3%