Skip to content
Hexadecimal Number font for micro:bit
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
.travis.yml
Makefile
README.md
icon.png
main.ts
pxt.json
test.ts
tsconfig.json

README.md

Hexadecimal number font (2x5) for micro:bit

This is a hexadecimal number font for micro:bit. You can show 2-digit hexadecimal number at a time.

Including decimal number font

Code Example

Hexadecimal number (0 to 255: ff)

input.onButtonPressed(Button.A, () => {
    hexadecimal.showNumberHex(0)
})
input.onButtonPressed(Button.B, () => {
    hexadecimal.showNumberHex(255)
})

Decimal number (-9 to 99)

input.onButtonPressed(Button.A, () => {
    hexadecimal.showNumberDecimal(0)
})
input.onButtonPressed(Button.B, () => {
    hexadecimal.showNumberDecimal(99)
})

More info

0 to 9 font based on whaleygeek/mb_clock.

more description and demo video / 日本語の説明とデモ動画

License

MIT

Supported targets

  • for PXT/microbit
You can’t perform that action at this time.