Beginning C for Arduino: Learn C Programming for the Arduino (Paperback)

Jack Purdum

  • 出版商: Apress
  • 出版日期: 2012-12-07
  • 售價: $2,530
  • 貴賓價: 9.5$2,404
  • 語言: 英文
  • 頁數: 280
  • 裝訂: Paperback
  • ISBN: 1430247762
  • ISBN-13: 9781430247760
  • 相關分類: ArduinoC 程式語言
  • 海外代購書籍(需單獨結帳)

買這商品的人也買了...

相關主題

商品描述

Beginning C for Arduino is written for those who have no prior experience with microcontrollers or programming but would like to experiment and learn both. 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 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 library routines

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.

What you’ll learn

  • The syntax of the C programming language as defined for the Arduino
  • Tried and true coding practices (applicable to any programming language)
  • How to design, code, and debug programs that drive Arduino microcontrollers
  • How to extend the functionality of C
  • How to integrate low cost, off-the-shelf, hardware shields into your own projects

Who this book is for

The book is aimed at a complete novice with no programming background. It assumes no prior programming or hardware design experience and is written for creative and curious people who would like to blend a software and hardware learning experience into a single, enjoyable endeavor.

Table of Contents

  1. Introduction to Arduino Microcontrollers
  2. Arduino C
  3. Data Types
  4.  Decision Making in C
  5. Program Loops
  6. Functions in C
  7. Storage Classes and Scope
  8. Introduction to Pointers
  9. Using Pointers Effectively
  10. I/O Operations
  11. The C Preprocessor
  12. Arduino Libraries
  13. Appendix A - Suppliers
  14. Appendix B - Hardware Components

商品描述(中文翻譯)

《Beginning C for Arduino》是為那些沒有微控制器或程式設計經驗,但想要進行實驗和學習的人而寫的。本書介紹了C程式設計語言,並通過簡單的示例展示如何使用C來控制Arduino系列微控制器。作者Jack Purdum以引人入勝的風格教授良好的程式設計技巧,這些示例是在他25年的大學教學中磨練出來的。

《Beginning C for Arduino》將教你:
- C程式設計語言
- 如何使用C來控制微控制器和相關硬體
- 如何通過創建自己的函式庫程式擴展C

在本書的過程中,你將學習程式設計的基礎知識,例如處理資料類型、做出決策和撰寫控制迴圈。然後,你將進一步學習C程式設計的一些較困難的方面,例如有效使用指標、使用C預處理器和處理檔案輸入/輸出。每章結束時都有一系列練習和複習問題,以測試你的知識並鞏固所學內容。

你將學到:
- Arduino定義的C程式設計語言語法
- 經過驗證的編碼實踐(適用於任何程式設計語言)
- 如何設計、編碼和除錯驅動Arduino微控制器的程式
- 如何擴展C的功能
- 如何將低成本的現成硬體擴展板整合到你的專案中

本書適合完全沒有程式設計背景的初學者。它不需要任何先前的程式設計或硬體設計經驗,並且是為有創造力和好奇心的人寫的,他們希望將軟體和硬體學習融入一個愉快的體驗中。

目錄:
1. Arduino微控制器介紹
2. Arduino C
3. 資料類型
4. C中的決策
5. 程式迴圈
6. C中的函式
7. 儲存類別和範圍
8. 指標介紹
9. 有效使用指標
10. 輸入/輸出操作
11. C預處理器
12. Arduino函式庫
附錄A - 供應商
附錄B - 硬體元件