35 lines
1.7 KiB
Markdown
35 lines
1.7 KiB
Markdown
[![MIT Licence](https://badges.frapsoft.com/os/mit/mit.svg?v=103)](https://opensource.org/licenses/mit-license.php)
|
|
[![Known Vulnerabilities](https://snyk.io/test/github/sexybiggetje/pixdisp/badge.svg?targetFile=package.json)](https://snyk.io/test/github/sexybiggetje/pixdisp?targetFile=package.json)
|
|
|
|
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.
|
|
|
|
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 trough 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
|
|
|
|
Navigate to http://localhost:8080/
|
|
|
|
Matrix driver & Unicorn Hat HD driver inspired by https://github.com/vesteraas/node-unicornhathd
|
|
|
|
### Drawing
|
|
![Device drawing](https://raw.githubusercontent.com/sexybiggetje/pixdisp/screenshots/device.jpg "Drawing on the device")
|
|
|
|
Simple clicking on the canvas in the responsive webinterface makes things light up.
|
|
|
|
### Camera
|
|
![Using your camera](https://raw.githubusercontent.com/sexybiggetje/pixdisp/screenshots/camera.jpg "Using your camera")
|
|
|
|
The webinterface allows you to capture your camera and submit images from there.
|
|
|
|
### Webinterface
|
|
![Web interface](https://raw.githubusercontent.com/sexybiggetje/pixdisp/screenshots/webui.png "Webinterface")
|
|
|
|
A simple web interface is included for drawing on the device. Defaults to port 8080.
|