BW16 (RTL8720DN) 與 Ameba 相容的 ARDUINO 範例表

Arduino內建許多Example, 底下的列表是Ameba支援的內建範例
請參考以下連結來設置 Ameba與Arduino IDE。 https://www.amebaiot.com/zh/amebad-bw16-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 A2 (PB3).
ADC pin reading voltage range 0 to 3.3V.
BareMinimum  
BlinkLED_BUILTIN sets to LED_G (on-board LED blue)LED options, on-board LED, LED_R (red), LED_B (blue), or LED_G (green).
LED_B and LED_G are PWM capable LED.
DigitalReadSerial  
FadeFor “analogWrite()”, use PWM capable pin.PWM capable Pin 3, 7, 8, 11, and 12.
ReadAnalogVoltageADC pin used, up to 3.3V. 
02. DigitalBlinkWithoutDelayLED_BUILTIN sets to LED_B (on-board LED blue)LED options, on-board LED.
ButtonReplace any Pin that sets beyond Pin 0 to 12.
Debounce
DigitalInputPullup
StateChangeDetection
toneKeyboardADC pin used, up to 3.3V.
For “analogRead()”, use ADC pin name (A2) 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.
Replace any Pin that sets beyond Pin 0 to 12.
LED options, on-board LED.
LED_B and LED_G are PWM capable LED.
AnalogInput
AnalogWriteMega
Calibration
Fading
Smoothing
04. CommunicationASCIITable LED options, on-board LED.
LED_B and LED_G are PWM capable LED.
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.
MultiSerialRequired external USB-to-UART module.
PhysicalPixelReplace any Pin that sets beyond Pin 0 to 12.
ReadASCIIStringFor “analogWrite()”, use PWM capable pin.
SerialEvent 
SerialPassthroughRequired external USB-to-UART module.
05. ControlArrays  
ForLoopIteration  
IfStatementConditionalADC pin used, up to 3.3V.
Replace any Pin that sets beyond Pin 0 to 12.
LED options, on-board LED.
switchCaseADC pin used, up to 3.3V. 
switchCase2  
WhileStatementConditionalADC pin used, up to 3.3V.
For “analogWrite()”, use PWM capable pin.
Replace any Pin that sets beyond Pin 0 to 12.
LED options, on-board LED.
LED_B and LED_G are PWM capable LED.
06. DisplaybarGraphADC pin used, up to 3.3V. 
07. StringsCharacterAnalysis  
StringAdditionOperator  
StringAppendOperator  
StringCaseChanges  
StringCharacters  
StringComparisonOperatorsADC pin used, up to 3.3V. 
StringIndexOf  
StringLength  
StringLengthTrim  
StringReplace  
StringStartsWithEndsWith  
StringSubstring  
StringToInt  
請先確認已安裝QQ通訊軟體