1
0
Fork 0
mirror of https://github.com/sexybiggetje/pixdisp.git synced 2024-11-14 17:51:02 +01:00
Little application to drive Led matrix displays on your raspberry pi
Find a file
2021-03-31 14:33:43 +02:00
.github Create FUNDING.yml 2019-07-23 12:07:20 +02:00
__tests__ Add cleanup to driver, for tests. Add forceExit flag for jest because it doesn't close otherwise. 2018-07-03 20:34:21 +02:00
controllers Add cleanup to driver, for tests. Add forceExit flag for jest because it doesn't close otherwise. 2018-07-03 20:34:21 +02:00
drivers Add cleanup to driver, for tests. Add forceExit flag for jest because it doesn't close otherwise. 2018-07-03 20:34:21 +02:00
www Remove unused snippets 2018-01-09 21:14:50 +01:00
.codeclimate.yml Configure codeclimate plugins 2018-01-05 19:59:44 +01:00
.eslintrc.json Add eslint-plugin-security and config 2018-01-07 09:41:17 +01:00
.gitignore Tests and Travis 2018-01-05 19:34:03 +01:00
.sidekickrc Add sidekick 2018-01-07 08:59:29 +01:00
.snyk fix: package.json, package-lock.json & .snyk to reduce vulnerabilities 2020-04-30 23:13:51 +02:00
.travis.yml Add eslint 2018-01-07 09:30:44 +01:00
CODE_OF_CONDUCT.md Add the code of conduct file 2018-01-04 23:04:13 +01:00
config.example.json Working implementation of drivers, and drawing application. Things light up! 2017-12-18 20:39:51 +01:00
CONTRIBUTING.md docs:minor grammar changes 2018-12-02 19:03:21 -06:00
LICENSE.md First work in progress app 2017-12-12 20:41:32 +01:00
package-lock.json Merge branch 'master' into dependabot/npm_and_yarn/ini-1.3.8 2021-03-31 14:33:43 +02:00
package.json fix: package.json & package-lock.json to reduce vulnerabilities 2021-03-23 21:08:08 +00:00
pixdisp.js Add preliminary support for writing sandboxed javascript for animation purposes. Renders a single frame now. 2018-01-07 16:18:58 +01:00
README.md Updates 2019-07-23 12:38:26 +02:00
SECURITY.md Create SECURITY.md 2019-07-23 12:49:03 +02:00

MIT Licence Known Vulnerabilities Maintainability Test Coverage Build Status

A small application to drive LED matrix displays, such as the Pimoroni Unicorn, from nodejs. My intention is to create a digital graffiti/guestbook system and a general animation system. This is a project for fun, so if you have a feature just request it! Or add it and I'll review it. Social coding ftw.

Make sure you are on a recent nodejs version. Raspbian has an old version. Use Nodesource ;).

Also, use a decent modern browser. I wrote recent syntax, so probably works best in Chrome 62+. Firefox is known to have some issues, Edge works, Safari is a PITA. Just wait for your browser to play catch up then with recent standards. If you dislike Chrome, you can put this through Babel. But you're on your own there.

Copy config.example.json to config.json and pick a driver + display size.

execute:

npm install
nodejs pixdisp.js

optionally npm install pi-spi jpeg-js mjpeg-server

Navigate to http://localhost:8080/

Matrix driver & Unicorn Hat HD driver inspired by https://github.com/vesteraas/node-unicornhathd

JPEG encoding by https://github.com/eugeneware/jpeg-js

mjpeg-server by https://www.npmjs.com/package/mjpeg-server

Unit tests

This application has some unit tests, making use of Jest. Jest is configured as a dev dependency.

execute:

npm test

Some code linting practices and security tests can be executed by running the lint task:

npm run lint

Drawing

Device drawing

Simple clicking on the canvas in the responsive webinterface makes things light up; when you press submit it will get sent to the device.

Camera

Using your camera

The webinterface allows you to capture your camera and submit images from there.

Webinterface

Web interface

A simple web interface is included for drawing on the device. Defaults to port 8080.

Coding

Coding

Demo (Click for youtube)

With an advanced editor you can write simple animations in the browser using a secure sandboxed javascript. Documentation will follow here once the API is final.