Conventions
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); delay(1000); }
Any command-line input or output is written as follows:
esptool.py --port /dev/ttyUSB0 --baud 460800 write_flash --flash_size=detect 0 esp8266-2016-05-03-v1.8.bin
New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "The .bin
files for the MicroPython port for ESP8266 are under the Firmware for ESP8266 boards sub heading."
Note
Warnings or important notes appear in a box like this.
Tip
Tips and tricks appear like this.