April 2017
Intermediate to advanced
268 pages
5h 36m
English
In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.
Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "We will configure pin 5 as an input and then read it using the digitalRead() function and display the state of the input signal on the serial monitor."
A block of code is set as follows:
// LED pin int inputPin = 5; int val = 0; void setup() { Serial.begin(9600); pinMode(inputPin, INPUT); } void loop() { // read pin val = digitalRead(inputPin); // display state of input pin Serial.println(val); ...