* * * * *
## 系統自帶示例文件目錄結構及說明 ##
examples
├─01.Basics 較為基礎的例程
│ ├─AnalogReadSerial 模擬輸入和串口操作:通過模擬輸入讀取電位器的值,并把結果輸出到Arduino串口監視器(Serial Monitor)
│ ├─BareMinimum arduino程序最基本的結構
│ ├─Blink 讓arduino板上的13引腳所連接的LED閃爍
│ ├─DigitalReadSerial 數字輸入:讀取按鈕開關的值,并輸出到串口監視器,
│ ├─Fade 模擬輸出,呼吸燈:讓一個LED的亮度漸弱
│ └─ReadAnalogVoltage 讀取模擬電壓:讀取模擬輸入的值,并換算成電壓,顯示到串口監視器,
├─02.Digital 數字引腳操作
│ ├─BlinkWithoutDelay 不用delay函數閃爍led,
│ ├─Button 按鈕:使用按鈕,控制LED,
│ ├─Debounce 按鈕去抖動:讀取一個按鈕狀態,并且濾去干擾
│ ├─DigitalInputPullup 數字引腳上的拉電阻:pinMode()函數INPUT_PULLUP參數的使用
│ ├─StateChangeDetection 探測按鈕狀的態改變:按鈕按下次數計數
│ ├─toneKeyboard 三鍵電子琴:使用壓力傳感器和壓電揚聲器制作三鍵電子琴
│ ├─toneMelody 使用tone播放樂曲
│ ├─toneMultiple 多個揚聲器播放樂曲:使用tone()函數操作多個揚聲器播放曲調
│ └─tonePitchFollower 光感琴:根據外界光照的不同,播放不同的曲調,
├─03.Analog 模擬信號操作
│ ├─AnalogInOutSerial 模擬信號與串口:根據電位器讀出的值來控制led的亮暗,
│ ├─AnalogInput 模擬信號輸入:根據電位器的值來控制led閃爍的時間間隔,
│ ├─AnalogWriteMega 模擬信號輸出:12個按照呼吸燈變化的led流水燈,
│ ├─Calibration 模擬信號的校準:根據光敏電阻的值來調節led的亮暗,
│ ├─Fading 呼吸燈:使用脈寬引腳(PWM pin)來讓一個LED的亮度漸弱
│ └─Smoothing 輸入信號平滑處理:多個模擬引腳的輸入值變得更加均勻平滑
├─04.Communication 通信
│ ├─ASCIITable ASCIl表:通過串口輸出ASCII碼表,
│ ├─Dimmer 調光器:與processing通信,通過移動鼠標來改變led的亮度,
│ ├─Graph 數據圖表:與processing通信,繪制電位器的數據圖像,
│ ├─Midi MIDI音樂:串口發送MIDI音符
│ ├─MultiSerial 多串口:使用Arduino Mega上的兩個串口
│ ├─PhysicalPixel 控制LED:與processing通信,控制led,
│ ├─ReadASCIIString 讀取ASCII字符串:通過串口讀的數值控制REG LED,
│ ├─SerialCallResponse 串口雙向調用 (握手連接):使用握手方式發送多個變量,
│ ├─SerialCallResponseASCII 串口雙向調用(使用ASCII字符串):使用握手方式發送多個變量,并且在轉發之前將這些變量的值通過ASCII解碼為字符串。
│ ├─SerialEvent 串口事件:串口高級用法SerialEvent舉例
│ ├─SerialPassthrough 一個板子上,同時用兩個串口通信,
│ └─VirtualColorMixer 虛擬調色盤:與processing通信,通過串口發送多個數據,來控制電腦端的顏色,
├─05.Control 結構控制
│ ├─Arrays 數組舉例:通過for循環來展示如何使用數組
│ ├─ForLoopIteration for循環示例:用for循環控制多個LED
│ ├─IfStatementConditional if判斷語句:使用if語句根據輸入的條件的變化改變輸出條件
│ ├─switchCase switchCase語句:從一堆不連續的數字中找到需要的數字
│ ├─switchCase2 switchCase語句:根據串口的輸入值來采取不同的動作
│ └─WhileStatementConditional While語句:使用while循環來在按鈕被按下時校準傳感器
├─06.Sensors 傳感器
│ ├─ADXL3xx 加速度計:讀取ADXL3xx加速度計
│ ├─Knock 檢測碰撞:用壓電元件來檢測碰撞
│ ├─Memsic2125 加速度計:兩軸加速度計
│ └─Ping 超聲波測距:使用超聲波來檢測物體的遠近
├─07.Display 顯示
│ ├─barGraph 電位器控制LED光帶長度,
│ └─RowColumnScanning 8*8點針掃描控制,
├─08.Strings 字符串
│ ├─CharacterAnalysis 字符串分析:使用操作符(operators )來識別我們正在處理的字符串
│ ├─StringAdditionOperator 字符串連接:以多種方式將字符串連接在一起
│ ├─StringAppendOperator 字符串擴充:使用 += 操作符和concat()方法將字符串擴充
│ ├─StringCaseChanges 字符串大小寫轉換
│ ├─StringCharacters 得到字符串中特定的字符
│ ├─StringComparisonOperators 字符串比較:用字母表順序比較字符串
│ ├─StringConstructors 字符串初始化
│ ├─StringIndexOf 字符串索引:獲取字符串中第一個/最后一個字符
│ ├─StringLength 字符串長度:獲取并且修正字符串長度
│ ├─StringLengthTrim 字符串修剪
│ ├─StringReplace 字符串替換:替換字符串中的字符
│ ├─StringStartsWithEndsWith 檢查字符串開始結尾:檢查(子)字符串是否是以給定字符開始/結尾的
│ ├─StringSubstring 字符串查找:在指定字符串中找到某個詞組
│ └─StringToInt 字符串轉換成整數類型
├─09.USB USB設備
│ ├─Keyboard 鍵盤
│ │ ├─KeyboardLogout 注銷電腦
│ │ ├─KeyboardMessage 鈕按下時發送字符串
│ │ ├─KeyboardReprogram 控制Arduino IDE:自動打開Arduino IDE并自動給一塊Leonardo寫簡單的blink程序
│ │ └─KeyboardSerial 從串口讀取后發回一個按鍵信息
│ ├─KeyboardAndMouseControl 鼠標和鍵盤示例
│ └─Mouse 鼠標
│ ├─ButtonMouseControl 控制鼠標移動:用5個按鈕控制鼠標移動
│ └─JoystickMouseControl 用搖桿控制鼠標:當按鈕按下時用搖桿控制鼠標移動
├─10.StarterKit_BasicKit 初學者套件(Starterkit)和基本套件(BasicKit)
│ ├─p02_SpaceshipInterface
│ ├─p03_LoveOMeter
│ ├─p04_ColorMixingLamp
│ ├─p05_ServoMoodIndicator
│ ├─p06_LightTheremin
│ ├─p07_Keyboard
│ ├─p08_DigitalHourglass
│ ├─p09_MotorizedPinwheel
│ ├─p10_Zoetrope
│ ├─p11_CrystalBall
│ ├─p12_KnockLock
│ ├─p13_TouchSensorLamp
│ ├─p14_TweakTheArduinoLogo
│ └─p15_HackingButtons
└─11.ArduinoISP
└─ArduinoISP
- 說明
- 系統示例文件目錄結構及說明
- 01.Basics
- AnalogReadSerial
- BareMinimum
- Blink
- DigitalReadSerial
- Fade
- ReadAnalogVoltage
- 02.Digital
- BlinkWithoutDelay
- Button
- Debounce
- DigitalInputPullup
- StateChangeDetection
- toneKeyboard
- toneMelody
- toneMultiple
- tonePitchFollower
- 03.Analog
- AnalogInOutSerial
- AnalogInput
- AnalogWriteMega
- Calibration
- Fading
- Smoothing
- 04.Communication
- ASCIITable
- Dimmer
- Graph
- Midi
- MultiSerial
- PhysicalPixel
- ReadASCIIString
- SerialCallResponse
- SerialCallResponseASCII
- SerialEvent
- SerialPassthrough
- VirtualColorMixer
- 05.Control
- Arrays
- ForLoopIteration
- IfStatementConditional
- switchCase
- switchCase2
- WhileStatementConditional
- 06.Sensors
- ADXL3xx
- Knock
- Memsic2125
- Ping
- 07.Display
- barGraph
- RowColumnScanning
- 08.Strings
- CharacterAnalysis
- StringAdditionOperator
- StringAppendOperator
- StringCaseChanges
- StringCharacters
- StringComparisonOperators
- StringConstructors
- StringIndexOf
- StringLength
- StringLengthTrim
- StringReplace
- StringStartsWithEndsWith
- StringSubstring
- StringToInt
- 09.USB
- Keyboard
- KeyboardLogout
- KeyboardMessage
- KeyboardReprogram
- KeyboardSerial
- KeyboardAndMouseControl
- Mouse
- ButtonMouseControl
- JoystickMouseControl
- 10.StarterKit_BasicKit (與特定硬件相關,暫無)
- p02_SpaceshipInterface
- p03_LoveOMeter
- p04_ColorMixingLamp
- p05_ServoMoodIndicator
- p06_LightTheremin
- p07_Keyboard
- p08_DigitalHourglass
- p09_MotorizedPinwheel
- p10_Zoetrope
- p11_CrystalBall
- p12_KnockLock
- p13_TouchSensorLamp
- p14_TweakTheArduinoLogo
- p15_HackingButtons
- 11.ArduinoISP(暫無)
- ArduinoISP