makecode Four Digit Display (TM1650) Package for microbit
Four Digit Display is a Module with four 7-segment LED, it can show number. It has TM1650 chip inside, control with a I2C bus.
Author: shaoziyang
Date: 2018.Mar
open your microbit makecode project, in Add Package, paste
https://github.com/microbit-makecode-packages/TM1650
to search box then search.
-
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
Copyright (c) 2018, microbit/micropython Chinese community
- for PXT/microbit