This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Using the Badger2040 as a digital badge / lanyard | |
import badger2040 | |
WIDTH = badger2040.WIDTH # 296 | |
HEIGHT = badger2040.HEIGHT # 128 | |
BANNER_HEIGHT = 30 | |
BANNER_TEXT_SIZE = 0.8 | |
NAME_PADDING_LEFT = 60 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -Eeuo pipefail | |
trap cleanup SIGINT SIGTERM ERR EXIT | |
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) | |
ide_script_name="ide_script.groovy" | |
usage() { | |
cat <<EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"backcolor": "#ffffff" | |
}, | |
[ | |
{ | |
"p": "SA", | |
"sm": "cherry", | |
"a": 7, | |
"f": 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
[ | |
{ | |
"c": "#aaaaaa" | |
}, | |
"0,0", | |
{ | |
"c": "#cccccc" | |
}, | |
"0,1", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
[ | |
"~\n`", | |
"!\n1", | |
"@\n2", | |
"#\n3", | |
"$\n4", | |
"%\n5", | |
"^\n6", | |
"&\n7", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"name": "SofleKeyboard", | |
"author": "Josef Adamcik", | |
"switchMount": "cherry", | |
"pcb": false | |
}, | |
[ | |
{ | |
"y": 0.2, |