Skip to content

YFROBOT-TM/pxt-yfrobot-4digitdisplay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Four Digit Display

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

Use as Extension

This repository can be added as an extension in MakeCode.

API

  • 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.

Demo

License

MIT

Supported targets

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published