The board ready event handler

Everything else that we do in a Johnny-Five project, besides the header, goes inside this event handler. This handler, as shown here, means our board is ready to read and write to GPIO pins, and any code run outside this event handler that manipulates GPIO is not guaranteed to work and may cause strange behavior:

board.on("ready", function() {
// Everything else goes in here!
});
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.222.115.179