Ameba ARDUINO: [RTL8722DM MINI] Supported ARDUINO built-in example list

There are many built-in examples in Arduino. In the table below, we list all examples that are compatible with Ameba.
CategoryNameCommentRemarks
01. BasicsAnalogReadSerialConnect potentiometer. Reading voltage range 0 to 3.3V.ADC pin options A0, A1, A2, A3, A4, A5 and A6.
BareMinimum  
Blink Onboard LEDs options LED_B and LED_G. (blue and green)
DigitalReadSerial Onboard button PUSH_BTN.
FadeReplace “led = 9;” by a PWM pin (D4, D5, D7, D12, D13, D14, D17, D20, or D21). e.g. “led = 4;” 
ReadAnalogVoltageADC can read a maximum of 3.3V. 
02. DigitalBlinkWithoutDelayThe onboard blue LED (LED_B) has been used.Onboard LEDs options LED_G.
Button Onboard LEDs options LED_B and LED_G. Onboard button PUSH_BTN.
Debounce Onboard LEDs options LED_B and LED_G. Onboard button PUSH_BTN.
DigitalInputPullup Onboard LEDs options LED_B and LED_G.
StateChangeDetection Onboard LEDs options LED_B and LED_G. Onboard button PUSH_BTN.
toneKeyboardReplace “tone(8, notes[thisSensor], 20);” by a PWM pin (D4, D5, D7, D12, D13, D14, D17, D20, or D21). e.g. “tone(21, notes[thisSensor], 20);” 
toneMelodyReplace “tone(8, notes[thisSensor], 20);” by a PWM pin (D4, D5, D7, D12, D13, D14, D17, D20, or D21). e.g. “tone(21, notes[thisSensor], 20);” 
toneMultipleReplace “tone(8, notes[thisSensor], 20);” by a PWM pin (D4, D5, D7, D12, D13, D14, D17, D20, or D21). e.g. “tone(21, notes[thisSensor], 20);” 
tonePitchFollowerReplace “tone(8, notes[thisSensor], 20);” by a PWM pin (D4, D5, D7, D12, D13, D14, D17, D20, or D21). e.g. “tone(21, notes[thisSensor], 20);” 
03. AnalogAnalogInOutSerialReplace “const int analogOutPin = 9;” by a PWM pin (D4, D5, D7, D12, D13, D14, D17, D20, or D21). e.g. “const int analogOutPin = 4; 
AnalogInputOnboard LEDs options LED_B and LED_G. 
Analog Write Mega  
CalibrationReplace “ledPin = 9;” by a PWM pin (D4, D5, D7, D12, D13, D14, D17, D20, or D21). e.g. “ledPin = 4;”Onboard LEDs options LED_B and LED_G. Onboard button PUSH_BTN.
FadingedPin = 9;” by a PWM pin (D4, D5, D7, D12, D13, D14, D17, D20, or D21). e.g. “ledPin = 4;” 
Smoothing  
04. CommunicationASCIITable  
DimmerReplace “ledPin = 9;” by a PWM pin (D4, D5, D7, D12, D13, D14, D17, D20, or D21). e.g. “ledPin = 4;” 
GraphConnect potentiometer. Reading voltage range 0 to 3.3V.ADC pin options A0, A1, A2, A3, A4, A5 and A6.
MidiPlease use Serial1 and pin 26, or use Serial2 and pin 17. 
MultiSerial  
PhysicalPixel Onboard LEDs options LED_B and LED_G.
ReadASCIIStringUse PWM pin for LED (D4, D5, D7, D12, D13, D14, D17, D20, or D21). 
SerialCallResponse  
SerialCallResponseASCII  
SerialEvent  
SerialPassthrough  
VirtualColorMixer ADC pin options A0, A1, A2, A3, A4, A5 and A6.
05. ControlArrays  
ForLoopIteration  
IfStatementConditional ADC pin options A0, A1, A2, A3, A4, A5 and A6. Onboard LEDs options LED_B and LED_G.
switchCase  
switchCase2  
WhileStatementConditionalReplace “ledPin = 9;” by a PWM pin (D4, D5, D7, D12, D13, D14, D17, D20, or D21). e.g. “ledPin = 4;ADC pin options A0, A1, A2, A3, A4, A5 and A6.
06. DisplaybarGraph ADC pin options A0, A1, A2, A3, A4, A5 and A6. Onboard LEDs options LED_B and LED_G.
RowColumnScanning ADC pin options A0, A1, A2, A3, A4, A5 and A6.
07. StringsCharacterAnalysis  
StringAdditionOperator  
StringAppendOperator  
StringCaseChanges  
StringCharacters  
StringComparisonOperators ADC pin options A0, A1, A2, A3, A4, A5 and A6.
StringIndexOf  
StringLength  
StringLengthTrim  
StringReplace  
StringStartsWithEndsWith  
StringSubstring  
StringToInt  
Copyrights ©瑞晟微电子(苏州)有限公司 2021. All rights reserved.
Please confirm that QQ communication software is installed