Bonescript Oscilliscope Demo

This demo utilizes Processing.JS to perform live visualizations. The client.js library implements a graphDraw() function that adds a new data point on the right hand side of the plot and connects all of the points with line segments. analogRead() captures data and provides it in a callback to graphDraw()


ain = bone.P9_36;
a = function(x) { graphDraw(x.value); };
b = function() { analogRead(ain, a); };
setInterval(b, 100);