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

Arduino內建許多Example, 底下的列表是Ameba支援的內建範例
請參考以下連結來設置 Ameba與Arduino IDE。 https://www.amebaiot.com.cn/zh/amebad-arduino-getting-started/
有關 Arduino 內建範例詳細信息,請參閱以下連結。 https://www.arduino.cc/en/Tutorial/BuiltInExamples/
CategoryNameCommentRemarks
01. BasicsAnalogReadSerialConnect potentiometer to 3.3V
ADC pin used, up to 3.3V.
ADC pin options A0, A1, A2, A3, A4, A5 and A6.
ADC pin reading voltage range 0 to 3.3V.
BareMinimum  
BlinkLED_BUILTIN sets to Pin 8. 
DigitalReadSerial  
FadeFor “analogWrite()”, use PWM capable pin.PWM capable Pin 8, 9, 10, 11, 12, 13, 16, 17, 18, 20, 21, 23, and 24.
ReadAnalogVoltageADC pin used, up to 3.3V. 
02. DigitalBlinkWithoutDelayLED_BUILTIN sets to Pin 8. 
Button  
Debounce  
DigitalInputPullup  
StateChangeDetection  
toneKeyboardADC pin used, up to 3.3V.
For “analogRead()”, use ADC pin name (A0 to A6) instead the integer number.
For “tone()” and “noTone()”, use PWM capable pin.
 
toneMelody 
toneMultiple 
tonePitchFollower 
03. AnalogAnalogInOutSerialADC pin used, up to 3.3V.
For “analogWrite()”, use PWM capable pin.
 
AnalogInput 
AnalogWriteMega 
Calibration 
Fading 
Smoothing 
04. CommunicationASCIITable 
DimmerFor “analogWrite()”, use PWM capable pin. 
GraphConnect potentiometer to 3.3V.
ADC pin used, up to 3.3V.
 
MidiUse Serial1, MIDI jack pin 5 connected to SERIAL1_TX;
Use Serial2, MIDI jack pin 5 connected to SERIAL2_TX.
 
MultiSerial  
PhysicalPixel  
ReadASCIIStringFor “analogWrite()”, use PWM capable pin. 
SerialCallResponseADC pin used, up to 3.3V.
For “analogRead()”, use ADC pin name (A0 to A6) instead the integer number.
 
SerialCallResponseASCIIADC pin used, up to 3.3V. 
SerialEvent  
SerialPassthrough Serial options, Serial, Serial1 or Serial2.
VirtualColorMixerADC pin used, up to 3.3V. 
05. ControlArraysADC pin used, up to 3.3V.
Pin 7 is NC, replace it with anoter pin.
For “analogWrite()”, use PWM capable pin.
 
ForLoopIteration 
IfStatementConditional 
switchCase 
switchCase2 
WhileStatementConditional 
06. DisplaybarGraphADC pin used, up to 3.3V.
Pin 7 is NC, replace it with anoter pin.
 
RowColumnScanning 
07. StringsCharacterAnalysis  
StringAdditionOperator  
StringAppendOperator  
StringCaseChanges  
StringCharacters  
StringComparisonOperatorsADC pin used, up to 3.3V. 
StringIndexOf  
StringLength  
StringLengthTrim  
StringReplace  
StringStartsWithEndsWith  
StringSubstring  
StringToInt  
Copyrights ©瑞晟微电子(苏州)有限公司 2021. All rights reserved. 使用條款
請先確認已安裝QQ通訊軟體