This repositoy contains the source code for the HSHB Nametag, a PCB designed in the Hackerspace Bremen e.V..
Building and flashing is done with PlatformIO.
You can get the latest binaries for all boards in the current GitHub releases.
Open the project folder in a PlatformIO IDE (VS Codium, etc.) and build it. During development, adjusting the BOARD_ID
directly in get_build_flags.py
might be easiest. If you're using the pio
binary simply run
$ BOARD_ID=1 pio run
Replace BOARD_ID=1
with the number of your board (sticker on the back), which is used to select the proper battery calibration values. If you do not provide the BOARD_ID
variable, the code will compile with the calibration data of board 1 by default.
If git
is available in your $PATH
, the binaries will include a build version like vX.Y.Z-N-shorthash
in their identification string.
Flash the project by using the appropriate button in your PlatformIO IDE. If you're using the pio
binary run
$ pio run -t upload
A serial console can be opened by running
$ pio device monitor