All Projects → sallar → Led Matrix Simulator

sallar / Led Matrix Simulator

Licence: mit
🔮 A simple HTML5 LED Matrix Simulator for fun

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Led Matrix Simulator

Canvacord
Powerful image manipulation tool to manipulate images easily.
Stars: ✭ 87 (-9.37%)
Mutual labels:  canvas
Vega
A visualization grammar.
Stars: ✭ 9,554 (+9852.08%)
Mutual labels:  canvas
Jetpack
🚀 Jetpack – Webpack made more convenient.
Stars: ✭ 1,326 (+1281.25%)
Mutual labels:  preact
React Tint
A React component that applies image processing filters to an image using Processing
Stars: ✭ 89 (-7.29%)
Mutual labels:  canvas
Colors App
🎨 A PWA for copying values from popular color palettes. Supports HEX, RGB, and HSL formats.
Stars: ✭ 90 (-6.25%)
Mutual labels:  preact
Sunwell
Canvas-based high quality Hearthstone card renderer
Stars: ✭ 93 (-3.12%)
Mutual labels:  canvas
Vue Card Diy
Canvas-based custom card vue app
Stars: ✭ 83 (-13.54%)
Mutual labels:  canvas
Bouncing Balls
Bouncing balls simulation using plain JavaScript
Stars: ✭ 96 (+0%)
Mutual labels:  canvas
Fun Photo Combine
一个有趣的图片合成工具(生成的图片在QQ缩略图与大图表现不同)
Stars: ✭ 90 (-6.25%)
Mutual labels:  canvas
Nanocomponent Adapters
🔌 - Convert a nanocomponent to a component for your favourite API or library (web components, (p)react, angular)
Stars: ✭ 94 (-2.08%)
Mutual labels:  preact
Waveview
A wave view of android,can be used as progress bar.
Stars: ✭ 1,294 (+1247.92%)
Mutual labels:  canvas
Offline Gallery
🎈 A 16kb Preact & Redux based Progressive Web App that offers an offline gallery experience of external images.
Stars: ✭ 90 (-6.25%)
Mutual labels:  preact
My Animate
使用 HTML5 / Canvas / CSS3 制作各种动画效果
Stars: ✭ 93 (-3.12%)
Mutual labels:  canvas
Preact Todomvc
💣 TodoMVC done in Preact. Under 6kb and fast.
Stars: ✭ 88 (-8.33%)
Mutual labels:  preact
Dataformsjs
🌟 DataFormsJS 🌟 A minimal JavaScript Framework and standalone React and Web Components for rapid development of high quality websites and single page applications.
Stars: ✭ 95 (-1.04%)
Mutual labels:  preact
Compress.js
A simple JavaScript based client-side image compression algorithm
Stars: ✭ 86 (-10.42%)
Mutual labels:  canvas
Kanvas
Make canvas easier to use in Kotlin 😊
Stars: ✭ 93 (-3.12%)
Mutual labels:  canvas
Canvas2pdf
Export your HTML canvas to PDF
Stars: ✭ 96 (+0%)
Mutual labels:  canvas
Airinggo
🐈 基于 JS 的五子棋 AI 实现
Stars: ✭ 95 (-1.04%)
Mutual labels:  canvas
Fe Daily Record
📚前端书籍汇集点 + 每日好文推荐 + 公开课学习资料 + 各种大会资料
Stars: ✭ 94 (-2.08%)
Mutual labels:  canvas

LED Matrix Simulator

I was too impatient for my Adafruit 32x16 LED Matrix display to arrive, so I made one using HTML5 Canvas.

⚠️ Note that this is an untested project meant for fun and learning, it's not meant to be used in production.

📍 See in in action here

Technologies used:

  • Typescript
  • Preact
  • HTML5 Canvas

Bitmap fonts

Microcontrollers need special bitmap fonts to display text or digits on Crystal or LED Matrix displays. These fonts are usually represented in an array of arrays of hexadecimal bytes. Something like this:

const unsigned char font[96][6] = {
  {0x00,0x00,0x00,0x00,0x00,0x00}, //  
  {0x2f,0x00,0x00,0x00,0x00,0x00}, // !
  {0x03,0x00,0x03,0x00,0x00,0x00}, // "
        ...

This array contains 96 characters (each character 6 bytes) ordered by their character code in Unicode table. So for example space is index 0, ! is index 1 and so on. So to find the character's index, we need to subtract 32 from it's characrer code. Each character in this font map is an array of 6 bytes, and each byte represents a column on the external display:

{0x3C,0x12,0x12,0x12,0x3E,0x00}, // A

To turn this into pixel data, each hex item needs to be converted to binary. This can be done easily in Javascript:

0x12.toString(2); // 00010010

From here it get's easy. 00010010 is a column on the display, and six of those form a letter. Read more about these fonts.

Related

LICENSE

Released under the MIT License.

Adafruit Plasma Example

The original code for the Plasma example is copied over from the Adafruit RGB Matrix panel library examples directory.

Written by Limor Fried/Ladyada & Phil Burgess/PaintYourDragon for Adafruit Industries.  
BSD license, all text above must be included in any redistribution
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].