Skip to content

HackerspaceBremen/hshb-nametag

Repository files navigation

HSHB Nametag

This repositoy contains the source code for the HSHB Nametag, a PCB designed in the Hackerspace Bremen e.V..

Prerequisites

Building and flashing is done with PlatformIO.

You can get the latest binaries for all boards in the current GitHub releases.

Building

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.

Flashing

Flash the project by using the appropriate button in your PlatformIO IDE. If you're using the pio binary run

$ pio run -t upload

Serial console

A serial console can be opened by running

$ pio device monitor

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published