LEADER 06067nam 22007455 450 001 9910300639703321 005 20200703121908.0 010 $a9781484209400 010 $a1484209400 024 7 $a10.1007/978-1-4842-0940-0 035 $a(CKB)3710000000436782 035 $a(EBL)3567475 035 $a(SSID)ssj0001525171 035 $a(PQKBManifestationID)11869904 035 $a(PQKBTitleCode)TC0001525171 035 $a(PQKBWorkID)11496902 035 $a(PQKB)11227782 035 $a(DE-He213)978-1-4842-0940-0 035 $a(MiAaPQ)EBC3567475 035 $a(CaSebORM)9781484209400 035 $a(PPN)186395019 035 $a(OCoLC)914301320 035 $a(OCoLC)ocn914301320 035 $a(EXLCZ)993710000000436782 100 $a20150630d2015 u| 0 101 0 $aeng 135 $aur|n|---||||| 181 $ctxt 182 $cc 183 $acr 200 10$aBeginning C for Arduino, Second Edition $eLearn C Programming for the Arduino /$fby Jack Purdum 205 $a2nd ed. 2015. 210 1$aBerkeley, CA :$cApress :$cImprint: Apress,$d2015. 215 $a1 online resource (381 p.) 225 0 $aTechnology in action Beginning C for Arduino 300 $aIncludes index. 311 08$a9781484209417 311 08$a1484209419 327 $aContents at a Glance; Contents; About the Author; About the Technical Reviewer; Acknowledgments; Introduction; Assumptions About You; Resources; Chapter 1: Introduction; Why Choose This Book?; Assumptions About You; What You Need; An Atmel-Based Microcontroller Card; Types of Memory; Flash Memory; SRAM; EEPROM; Making the Choice; Board Size; Input/Output (I/O) Pins; Breadboard; Miscellaneous Parts; Installing and Verifying the Software; Verifying the Hardware; Attaching the USB Cable; Selecting Your ?c Board in the Integrated Development Environment; Port Selection 327 $aLoading and Running Your First ProgramWriting Your First Program; What the Program Does; Compiling and Uploading a Program; Summary; Chapter 2: Arduino C; The Building Blocks of All Programming Languages; Expressions; Statements; Operator Precedence; Statement Blocks; Function Blocks; The Five Program Steps; 1. Initialization Step; 2. Input Step; 3. Process Step; 4. Output Step; 5. Termination Step; The Purpose of the Five Program Steps; A Revisit to Your First Program; The setup() Function; The loop() Function; Arduino Program Requirements; The Blink Program; Program Comments 327 $aSingle-Line CommentsMulti-line Comments; When to Use Comments; The setup() Function in Blink; How to Find Information About Library Functions; The loop() Function; delay(): Good News, Bad News; Summary; Chapter 3: Arduino C Data Types; Keywords in C; Variable Names in C; The boolean Data Type; Walking Through the Function Call to ReadSwitchState (); Binary Numbers; The char Data Type and Character Sets; Generating a Table of ASCII Characters; The byte Data Type; The int Data Type; The word Data Type; The long Data Type; The float and double Data Types; Floating Point Precision 327 $aThe string Data TypeString Data Type; Which Is Better: String or strings Built from char Arrays?; The void Data Type; The array Data Type; Array Generalizations; Defining vs. Declaring Variables; Language Errors; Symbol Tables; lvalues and rvalues; Understanding an Assignment Statement; The Bucket Analogy; Using the cast Operator; The Cast Rule; Silent Casts; Summary; Chapter 4: Decision Making in C; Relational Operators; The if Statement; What if Expression1 Is Logic True?; What if Expression1 Is Logic False?; Braces or No Braces?; A Modified Blink Program; The Circuit 327 $aSummary 330 $aBeginning C for Arduino, Second Edition is written for those who have no prior experience with microcontrollers or programming but would like to experiment and learn both. Updated with new projects and new boards, this book introduces you to the C programming language, reinforcing each programming structure with a simple demonstration of how you can use C to control the Arduino family of microcontrollers. Author Jack Purdum uses an engaging style to teach good programming techniques using examples that have been honed during his 25 years of university teaching. Beginning C for Arduino, Second Edition will teach you: The C programming language How to use C to control a microcontroller and related hardware How to extend C by creating your own libraries, including an introduction to object-oriented programming During the course of the book, you will learn the basics of programming, such as working with data types, making decisions, and writing control loops. You'll then progress onto some of the trickier aspects of C programming, such as using pointers effectively, working with the C preprocessor, and tackling file I/O. Each chapter ends with a series of exercises and review questions to test your knowledge and reinforce what you have learned. 517 3 $aLearn C programming for the Arduino 606 $aComputer input-output equipment 606 $aComputer hardware 606 $aProgramming languages (Electronic computers) 606 $aHardware and Maker$3https://scigraph.springernature.com/ontologies/product-market-codes/I29010 606 $aComputer Hardware$3https://scigraph.springernature.com/ontologies/product-market-codes/I1200X 606 $aProgramming Languages, Compilers, Interpreters$3https://scigraph.springernature.com/ontologies/product-market-codes/I14037 615 0$aComputer input-output equipment. 615 0$aComputer hardware. 615 0$aProgramming languages (Electronic computers) 615 14$aHardware and Maker. 615 24$aComputer Hardware. 615 24$aProgramming Languages, Compilers, Interpreters. 676 $a004 700 $aPurdum$b Jack$4aut$4http://id.loc.gov/vocabulary/relators/aut$020924 801 0$bUMI 801 1$bUMI 906 $aBOOK 912 $a9910300639703321 996 $aBeginning C for Arduino, Second Edition$92202150 997 $aUNINA