1.0.9 • Published 3 years ago

@elliottkember/leduino v1.0.9

Weekly downloads
20
License
ISC
Repository
-
Last release
3 years ago

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),
});
1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago