An eink badge project for top.gal events using the Badger 2040(W) board.
⚠️ Work In Progress⚠️ This project is under development and still far from being finished. But don't let that stop you from taking a look at the code and contributing to it :)
First of all, update the firmware on your Badger 2040(W) to the latest version.
Just follow the instructions in the Pimoroni Badger 2040W repository.
Use whatever IDE you want (as long as it supports Micropython), but we recommend using VSCode with the following extensions installed:
{
"recommendations": [
"ms-python.python",
"visualstudioexptteam.vscodeintellicode",
"ms-python.vscode-pylance",
"paulober.pico-w-go"
]
}python3 -m venv .venv
source .venv/bin/activatepip3 install -r requirements.txt.reqFrom the VSCode command palette, run: "MicroPico: Setup MicroPico project".
IT will create a .micropico file in the root of the project to identify it.
If everything is set up correctly, yoy can now select a MicroPico vREPL terminal in VSCode, and if there's no issue connecting to the badge you will see something similar to this:
MicroPython v1.23.0-dirty on 2024-06-21; Pimoroni Badger2040W 2MB with RP2040
Type "help()" for more information or .help for custom vREPL commands.
>>> To generate the QR code matrix:
- Edit the
DATAvariable insrc/assets/qr/qrcode_URL_generator.pyto contain the URL or text to encode. - Run the script:
python3 src/assets/qr/qrcode_URL_generator.pyIt should automatically generate the src/assets/qr/bit_matrix.py file with the QR code matrix that is imported in the main.py file as BIT_MATRIX.
All the code is licensed under the MIT License.
To join the repository as a contributor, please see CONTRIBUTING.md.