This package contains useful classes for the Raspberry Pi. TypeScript support included.
Changes: See CHANGELOG.md.
Usage
ES6 example:
// JavaScriptconst DigitalInput DigitalOutput = ; // TypeScript;; const input = 11 ;const output = 13 ; input;
AVPlayer
Starts audio/video files with VLC, mplayer, or omxplayer, whatever is available.
; ;player.play 'movie.mp3' .catchconsole.error 'Playback error', err ;
IO
An extension to rpio with events on digital input/output pins and status report as JSON.
Note: Newer rpio and kernel combinations may cause freezes when hooking up interrupts.
See 4.14 freezes when GPIO is pulled high
and add dtoverlay=gpio-no-irq
to /boot/config.txt
for a workaround.
Vector clock
Small class implementing a Vector Clock for ordering asynchronous events.