View VisibilityObserver.js
| export class VisibilityObserver { | |
| constructor(element, callback) { | |
| this.callback = callback; | |
| if(window.IntersectionObserver) { | |
| this.observer = new IntersectionObserver( | |
| ::this.processChanges, { threshold: [0.5] }); | |
| this.observer.observe(element); |
View PatchYun.ino
| #include <Process.h> | |
| void setup() { | |
| Bridge.begin(); | |
| Serial.begin(9600); | |
| while (!Serial) | |
| ; | |
| Serial.print("Patching..."); |
View StandardFirmataForATH0.ino
| /* | |
| * Firmata is a generic protocol for communicating with microcontrollers | |
| * from software on a host computer. It is intended to work with | |
| * any host computer software package. | |
| * | |
| * To download a host software package, please clink on the following link | |
| * to open the download page in your default browser. | |
| * | |
| * http://firmata.org/wiki/Download | |
| */ |
View StandardFirmataForATH0.ino
| /* | |
| * Firmata is a generic protocol for communicating with microcontrollers | |
| * from software on a host computer. It is intended to work with | |
| * any host computer software package. | |
| * | |
| * To download a host software package, please clink on the following link | |
| * to open the download page in your default browser. | |
| * | |
| * http://firmata.org/wiki/Download | |
| */ |