@elliottkember/leduino
TypeScript icon, indicating that this package has built-in type declarations

1.0.9 • Public • Published

LEDuino

This is a small wrapper around the Wokwi AVR8js library, for simulating WS2812 LED arrays in the browser.

It's a fairly simple set of configuration values and constants used to configure an Arduino Mega simulator and execute it, including drawing pixels to a canvas element.

Usage

You can see an example of this project in the demo directory, but basically:

import LEDuino from '@elliottkember/leduino';

new LEDuino({
  rows: 14,
  cols: 14,
  serpentine: true,
  hex: {/* A hex object generated by wokwi-hexi */},
  canvas: document.getElementById('canvas'),
  // onPixels: (pixels) => console.log(pixels.length),
  // onSerial: (text) => console.log(text),
});

Readme

Keywords

none

Package Sidebar

Install

npm i @elliottkember/leduino

Weekly Downloads

1

Version

1.0.9

License

ISC

Unpacked Size

44.4 kB

Total Files

38

Last publish

Collaborators

  • elliottkember