- Python Programming for Arduino
- Pratik Desai
- 290字
- 2021-07-23 20:11:32
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: "While assigning the value to the weight
variable, we didn't specify the data type, but the Python interpreter assigned it as an integer type, int
."
A block of code is set as follows:
/* Blink Turns on an LED on for one second, then off for one second, repeatedly. This example code is in the public domain. */ // Pin 13 has an LED connected on most Arduino boards. // give it a name: int led = 13; // the setup routine runs once when you press reset: void setup() { // initialize the digital pin as an output. pinMode(led, OUTPUT); } // the loop routine runs over and over again forever: void loop() { digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level) delay(1000); // wait for a second digitalWrite(led, LOW); // turn the LED off by making the voltage LOW delay(1000); // wait for a second }
Any command-line input or output is written as follows:
$ sudo easy_install pip
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: "In the System window, click on the Advanced system settings in the left navigation bar to open a window called System Properties."
- 大學計算機基礎(第三版)
- Python科學計算(第2版)
- Redis Applied Design Patterns
- Photoshop智能手機APP UI設計之道
- Linux核心技術從小白到大牛
- Java Web開發之道
- 游戲程序設計教程
- Android 應用案例開發大全(第3版)
- Haskell Data Analysis Cookbook
- Learning AWS
- Julia 1.0 Programming Complete Reference Guide
- Mastering Leap Motion
- Keil Cx51 V7.0單片機高級語言編程與μVision2應用實踐
- 零基礎學編程系列(全5冊)
- Selenium WebDriver自動化測試完全指南