This repository is a little suggar wrapper around the flashing instructions found here.
Create an environment file .env
that sets the port of the zig-a-zig-ahh stick:
# .env
PORT="<replace-with-port>"
Alternatively, you can also set the port of the device using the environment variable PORT
. See below how to discover the port the stick is connected through.
You will also need the install the virtual environment using pipenv:
make install
To flash a program you can use one of the two commands:
make flash-blink
for the blink programmake flash-coordinator
for the Z-Stack coordinator
If you do not know your port, try running make discover-port
. The output will look like this:
Press any key to continue after device is connected.
> cu.usbserial-143220
> tty.usbserial-143220
Use the tty port, i.e. PORT=/dev/tty.usbserial-143220
.