YFROBOT's Four Digit Display makecode Package for microbit .
Four Digit Display is a Module with four 8-segment LED, it can show number.
Author: YFROBOT
Date: 2021-4-17
This repository can be added as an extension in MakeCode.
- open https://makecode.microbit.org
- click on New Project
- click on Extensions under the gearwheel menu
- search for https://github.com/YFROBOT-TM/pxt-yfrobot-4digitdisplay and import
-
on()
turn on the display. -
off()
turn off the display. -
clear()
clear content of the display. -
digit(num: number, bit: number)
show a digit number in given position. -
showNumber(num: number)
show a interger number in display. -
showHex(num: number)
show a hex number. -
showDpAt(bit: number, show: boolean)
show or hide dot piont in give bit
bit is dot piont position, [0 - 3]
show, True will show DP, other will hide it -
setIntensity(dat: number)
set display intensity.
MIT
- for PXT/microbit From microbit/micropython Chinese community