Ameba ARDUINO: [RTL8722DM MINI] 與 Ameba 相容的 ARDUINO 範例表

Arduino內建許多Example, 底下的列表是Ameba支援的內建範例
Category Name Comment Remarks
01. Basics AnalogReadSerial Connect 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.
Fade Replace “led = 9;” by a PWM pin (D4, D5, D7, D12, D13, D14, D17, D20, or D21). e.g. “led = 4;”
ReadAnalogVoltage ADC can read a maximum of 3.3V.
02. Digital BlinkWithoutDelay The 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.
toneKeyboard Replace “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);”
toneMelody Replace “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);”
toneMultiple Replace “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);”
tonePitchFollower Replace “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. Analog AnalogInOutSerial Replace “const int analogOutPin = 9;” by a PWM pin (D4, D5, D7, D12, D13, D14, D17, D20, or D21). e.g. “const int analogOutPin = 4;
AnalogInput Onboard LEDs options LED_B and LED_G.
Analog Write Mega
Calibration Replace “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.
Fading edPin = 9;” by a PWM pin (D4, D5, D7, D12, D13, D14, D17, D20, or D21). e.g. “ledPin = 4;”
Smoothing
04. Communication ASCIITable
Dimmer Replace “ledPin = 9;” by a PWM pin (D4, D5, D7, D12, D13, D14, D17, D20, or D21). e.g. “ledPin = 4;”
Graph Connect potentiometer. Reading voltage range 0 to 3.3V. ADC pin options A0, A1, A2, A3, A4, A5 and A6.
Midi Please use Serial1 and pin 26, or use Serial2 and pin 17.
MultiSerial
PhysicalPixel Onboard LEDs options LED_B and LED_G.
ReadASCIIString Use 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. Control Arrays
ForLoopIteration
IfStatementConditional ADC pin options A0, A1, A2, A3, A4, A5 and A6. Onboard LEDs options LED_B and LED_G.
switchCase
switchCase2
WhileStatementConditional Replace “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. Display barGraph 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. Strings CharacterAnalysis
StringAdditionOperator
StringAppendOperator
StringCaseChanges
StringCharacters
StringComparisonOperators ADC pin options A0, A1, A2, A3, A4, A5 and A6.
StringIndexOf
StringLength
StringLengthTrim
StringReplace
StringStartsWithEndsWith
StringSubstring
StringToInt
請先確認已安裝QQ通訊軟體