Conventions used
There are a number of text conventions used throughout this book.
Code in text
: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "The board
module contains definitions of the pins and peripherals specific to the board."
A block of code is set as follows:
from machine import Pin import utime led = Pin(25, Pin.OUT) while True:
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
while True: led.toggle() utime.sleep(1)
Any command-line input or output is written as follows:
>>> print("Hello World")
Bold: Indicates a new term, an important word, or words that you see onscreen. For instance, words in menus or dialog boxes appear in bold. Here is an example: "An impulse can be created from the Create impulse tab on the left."
Tips or Important Notes
Appear like this.