-
Connect your target hardware to your host computer or network as described above
-
Prepare your Phoenix project to build JavaScript and CSS assets:
cd ui # This needs to be repeated when you change dependencies for the UI. mix deps.get
-
Build your assets and prepare them for deployment to the firmware:
# Still in ui directory from the prior step. # This needs to be repeated when you change JS or CSS files. mix assets.deploy
-
Change to the
firmwareapp directorycd ../firmware -
Specify your target and other environment variables as needed:
export MIX_TARGET=rpi0 -
Get dependencies, build firmware, and burn it to an SD card:
mix deps.get mix firmware mix firmware.burn
-
Insert the SD card into your target board and connect the USB cable or otherwise power it on
-
Wait for it to finish booting (5-10 seconds)
-
Open a browser window on your host computer to
192.168.0.1 -
You should see the controller UI
okuyamacode/raildwarf
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|