parshap / js-opc Goto Github PK
View Code? Open in Web Editor NEWOpen Pixel Control protocol
Open Pixel Control protocol
Heyo,
Buffer
class is used in test.js
which is not available in Browsers:
Uncaught TypeError: Buffer.alloc is not a function
at getBuffer (test-bundle.js:11774)
at module.exports (test-bundle.js:11774)
at Test.<anonymous> (test-bundle.js:11788)
at Test.bound [as _cb] (test-bundle.js:8090)
at Test.run (test-bundle.js:8103)
at Test.bound [as run] (test-bundle.js:8090)
at next (test-bundle.js:7900)
at test-bundle.js:5322
at Array.forEach (<anonymous>)
at MutationObserver.<anonymous> (test-bundle.js:5321)
(Posted here so others may find it and because it exceeds 140 charactersโฆ)
Background: I am using opc
in an app that controls 'sections' of pixels according to some configurable logic. I wrote a very simple/naive abstraction on top of it (1 section = 1 strand), and I am using that to get a feeling for how a higher-level OPC package could look (internally and externally).
So far, the prototype is working fine, but some questions arose from that:
stream.writePixels
to take a callback(err, res)
, but it doesn't. Is that because it wouldn't make sense conceptually or just because it wasn't needed till now?All 3 questions can be summarised as "should I now take the time to learn more about buffers/net/streams or will it just be fine" ;)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.