- 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."
- .NET 4.0面向?qū)ο缶幊搪劊夯A(chǔ)篇
- Java從入門到精通(第4版)
- SQL語言從入門到精通
- SEO智慧
- Effective Python Penetration Testing
- SQL基礎(chǔ)教程(視頻教學(xué)版)
- Modern JavaScript Applications
- HTML5從入門到精通 (第2版)
- Java系統(tǒng)化項(xiàng)目開發(fā)教程
- 執(zhí)劍而舞:用代碼創(chuàng)作藝術(shù)
- Vue.js應(yīng)用測試
- C語言程序設(shè)計(jì)實(shí)訓(xùn)教程與水平考試指導(dǎo)
- jQuery for Designers Beginner's Guide Second Edition
- Mastering ArcGIS Server Development with JavaScript
- jMonkeyEngine 3.0 Beginner’s Guide