This is a project to get you started with the Pimoroni Automation Hat and its awesome python library on resinOS and resin.io.
- Provision a device in your application following this Getting Started Guide.
- Clone this repository locally and add the
resin git remote
to the repo. - Run
git push resin master
and wait for the code to be deployed. The code will build and run, you will hear the relay clicking every 5 seconds.
- Follow the ResinOS Getting Started Guide and get your device set up. Make sure you are familiar with
rdt
and can push a basic container. - Once your resinOS device is showing on the local network, ssh into it doing
rdt ssh --host
. On the host load up the i2c kernel module by running:modprobe i2c-dev
- Clone this repository locally and run
rdt push resin.local -s .
from the root of the repository folder. The code will build and run, you will hear the relay clicking every 5 seconds.