Test the Hardware and Build the Cabinet
Soon, it will be time to build out your glorious cabinet, but before you do anything permanent, it’s best to test what you have built so far. We will handle the test in two parts. First, we’ll generate our new Nerves project with the circuits_spi dependency, and then we’ll use the interface to turn on some lights.
Let’s test the system now.
Build a Networked Project
To test the project, we’re going to need a new Nerves project. Luckily, you already know how to create those. We’ll throw in a new wrinkle to connect it to the network, and then we’ll be done.
Create a new project with mix nerves.new clock:
| $ mix nerves.new clock |
Next, fetch dependencies. Add these two dependencies for working with ...
Get Build a Binary Clock with Elixir and Nerves now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.