Basic Examples
Ameba ARDUINO: [RTL8722CSM][RTL8722DM] 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.
Category |
Name |
Comment |
|---|---|---|
01.Basics |
AnalogReadSerial |
Connect potentiometer to 3.3V |
BareMinimum |
||
Blink |
Connect LED to pin 8 |
|
DigitalReadSerial |
||
Fade |
||
ReadAnalogVoltage |
ADC can read a maximum of 3.3V. |
|
02.Digital |
BlinkWithoutDelay |
Connect LED to pin 8 |
Button |
Connect LED to pin 13 |
|
Debounce |
Connect LED to pin 13 |
|
DigitalInputPullup |
Connect LED to pin 13 |
|
StateChangeDetection |
Connect LED to pin 13 |
|
toneKeyboard |
||
toneMelody |
||
toneMultiple |
||
tonePitchFollower |
||
03.Analog |
AnalogInOutSerial |
|
AnalogInput |
Connect LED to pin 13 |
|
Analog Write Mega |
||
Calibration |
Connect another LED to pin 13 |
|
Fading |
||
Smoothing |
||
04.Communication |
ASCIITable |
|
Dimmer |
Use serial baud rate 115200 |
|
Graph |
Use serial baud rate 115200, Connect potentiometer to 3.3V |
|
Midi |
Please use Serial1 and pin 26, or use Serial2 and pin 17 |
|
MultiSerial |
||
PhysicalPixel |
Use serial baud rate 115200 |
|
ReadASCIIString |
||
SerialCallResponse |
Use serial baud rate 115200 |
|
Serial CallResponseASCII |
Use serial baud rate 115200 |
|
SerialEvent |
||
SerialPassthrough |
||
VirtualColorMixer |
Use serial baud rate 115200 |
|
05.Control |
Arrays |
Use pins 1, 2, 3, 4, 5, 6 |
ForLoopIteration |
Use pins 1, 2, 3, 4, 5, 6 |
|
IfStatementConditional |
||
switchCase |
||
switchCase2 |
||
While StatementConditional |
Connect another LED to pin 13 |
|
06.Display |
barGraph |
Use another pin to replace pin 7 |
RowColumnScanning |
||
07.Strings |
CharacterAnalysis |
|
String AdditionOperator |
||
StringAppendOperator |
||
StringCaseChanges |
||
StringCharacters |
||
String ComparisonOperators |
||
StringIndexOf |
||
StringLength |
||
StringLengthTrim |
||
StringReplace |
||
String StartsWithEndsWith |
||
StringSubstring |
||
StringToInt |