March 2018
Beginner
448 pages
15h 26m
English
Chapter 1. Bringing JavaScript and hardware together
Listing 1.1. Pseudo-code for temperature-triggered fan logic
Chapter 2. Embarking on hardware with Arduino
Listing 2.1. Example of configuring a digital output pin
Listing 2.2. Setting a digital output pin
Listing 2.3. A complete sketch to blink an LED
Listing 2.4. First Johnny-Five project preparation
Listing 2.6. Running hello.js in a terminal
Listing 2.7. LED blinking with the Arduino programming language
Listing 2.8. LED blinking with Johnny-Five
Chapter 4. Sensors and input
Listing 4.1. Instantiating a new Sensor object with Johnny-Five