Giter Site home page Giter Site logo

narongporn / pxt-alphanumeric-ht16k33 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tinkertanker/pxt-alphanumeric-ht16k33

0.0 0.0 0.0 110 KB

Tinkercademy MakeCode Package for the HT16K33 Alphanumeric Display (beta)

License: MIT License

C++ 82.83% Makefile 0.78% TypeScript 16.38%

pxt-alphanumeric-ht16k33's Introduction

for PXT/microbit

HT16K33 Alphanumeric Display PXT Package

This is the PXT Package for HT16K33 Alphanumeric Display from ElecFreaks

Hardware Setup

  1. Connect SCL, SDA to the TinkerTanker break out board's I2C pins.
  2. Connect VCC, GND to the break out board as well.

PXT Blocks

  1. Initialize Alphanumeric Display This block will initialise the display to receive display inputs. It defaults to using micro:bit's I2C pins (I2C_SDA0 and I2C_SCL0).

  2. Show String This block will receive a string and display it on the Alphanumeric Display. If string has 4 or less characters, it will just display it without scrolling. If not, it will scroll with an interval of 250ms between shifts. (Interval can be changed)

  3. Show number This block will receive an integer and display it on the Alphanumeric Display. If the number has 4 or less characters (inclusive of negative sign), it will be displayed without scrolling, aligned to the right. If not, it will be converted to a string and scrolled as per 'Show String'.

Possible Extensions

  1. Control Blink Rate (defined in cpp, not exposed to PXT)
  2. Control Brightness between 0 to 15 (defined in cpp, not exposed to PXT)

Footnotes

  1. Quirks with numbering of LEDs on ElecFreaks's alphanumeric display. LED 11 and LED 13 are swapped as compared to Adafruit's alphanumeric display. The 'font' was designed for Adafruit's display and has been swapped inside this package via software.

  2. Numbering of digits In this program, the digits are numbered from left to right, 0-indexed. Eg: 0-1-2-3 However, they are numbered as 2-3-0-1 in specifications. They are renumbered in this package using xor: hardware_pos = software_pos^2 or software_pos = hardware_pos^2.

  3. Datasheet Implemented according to datasheet: http://www.robotshop.com/media/files/pdf/EF4058-ht16K33v110-datasheet.pdf

pxt-alphanumeric-ht16k33's People

Contributors

firemansamm avatar ranaldmiao avatar nioq avatar yjsoon avatar diabloboy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.