AMB21 (RTL8722DM) 與 Ameba 相容的 ARDUINO 範例表

Arduino內建許多Example, 底下的列表是Ameba支援的內建範例
請參考以下連結來設置 Ameba與Arduino IDE。 https://www.amebaiot.com/amebad-arduino-getting-started/
有關 Arduino 內建範例詳細信息,請參閱以下連結。 https://www.arduino.cc/en/Tutorial/BuiltInExamples/
Category Name Comment Remarks
01. Basics AnalogReadSerial Connect potentiometer to 3.3V ADC pin options A0, A1, A2, A3, A4, A5 and A6. ADC pin reading voltage range 0 to 3.3V.
BareMinimum
Blink Pin LED_BUILTIN sets to pin D8.
DigitalReadSerial
Fade
ReadAnalogVoltage ADC pin options A0, A1, A2, A3, A4, A5 and A6. ADC pin reading voltage range 0 to 3.3V.
02. Digital BlinkWithoutDelay Pin LED_BUILTIN sets to pin D8.
Button Connect LED to pin D13.
Debounce Connect LED to pin D13.
DigitalInputPullup Connect LED to pin D13.
StateChangeDetection Connect LED to pin D13.
toneKeyboard
toneMelody
toneMultiple
tonePitchFollower
03. Analog AnalogInOutSerial ADC pin options A0, A1, A2, A3, A4, A5 and A6. ADC pin reading voltage range 0 to 3.3V.
AnalogInput Connect LED to pin D13. ADC pin options A0, A1, A2, A3, A4, A5 and A6. ADC pin reading voltage range 0 to 3.3V.
Analog Write Mega
Calibration Connect another LED to pin D13. ADC pin options A0, A1, A2, A3, A4, A5 and A6. ADC pin reading voltage range 0 to 3.3V.
Fading
Smoothing ADC pin options A0, A1, A2, A3, A4, A5 and A6. ADC pin reading voltage range 0 to 3.3V.
04. Communication ASCIITable
Dimmer
Graph Connect potentiometer to 3.3V. ADC pin options A0, A1, A2, A3, A4, A5 and A6. ADC pin reading voltage range 0 to 3.3V.
Midi Use Serial1 and pin D26, or use Serial2 and pin D17.
MultiSerial
PhysicalPixel
ReadASCIIString
SerialCallResponse ADC pin options A0, A1, A2, A3, A4, A5 and A6. ADC pin reading voltage range 0 to 3.3V.
SerialCallResponseASCII ADC pin options A0, A1, A2, A3, A4, A5 and A6. ADC pin reading voltage range 0 to 3.3V.
SerialEvent
SerialPassthrough Serial options, Serial1 or Serial2.
VirtualColorMixer ADC pin options A0, A1, A2, A3, A4, A5 and A6. ADC pin reading voltage range 0 to 3.3V.
05. Control Arrays Use pins D1, D2, D3, D4, D5, D6.
ForLoopIteration Use pins D1, D2, D3, D4, D5, D6.
IfStatementConditional ADC pin options A0, A1, A2, A3, A4, A5 and A6. ADC pin reading voltage range 0 to 3.3V.
switchCase ADC pin options A0, A1, A2, A3, A4, A5 and A6. ADC pin reading voltage range 0 to 3.3V.
switchCase2 Use pins D1, D2, D3, D4, D5, D6.
WhileStatementConditional Connect another LED to pin D13. ADC pin options A0, A1, A2, A3, A4, A5 and A6. ADC pin reading voltage range 0 to 3.3V.
06. Display barGraph Use another pin to replace pin D7. ADC pin options A0, A1, A2, A3, A4, A5 and A6. ADC pin reading voltage range 0 to 3.3V.
RowColumnScanning ADC pin options A0, A1, A2, A3, A4, A5 and A6. ADC pin reading voltage range 0 to 3.3V.
07. Strings CharacterAnalysis
StringAdditionOperator
StringAppendOperator
StringCaseChanges
StringCharacters
StringComparisonOperators ADC pin options A0, A1, A2, A3, A4, A5 and A6. ADC pin reading voltage range 0 to 3.3V.
StringIndexOf
StringLength
StringLengthTrim
StringReplace
StringStartsWithEndsWith
StringSubstring
StringToInt
請先確認已安裝QQ通訊軟體