將開發板連接電腦 USB 並開啟 Arduino IDE 並選好 開發板名稱 及 COM Port 位置
程式碼
int YelloLED = 9; //PA15
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(YelloLED, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(YelloLED, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(YelloLED, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
將開發板連接電腦 USB 並開啟 Arduino IDE 並選好 開發板名稱 及 COM Port 位置
溫馨提醒:
本開發板有 Auto flash 自動上傳功能, 請將 Auto Upload mode 設定為 Enable
測試 Blink 程式
int YelloLED = 9; //PA15
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(YelloLED, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(YelloLED, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(YelloLED, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
STM32F401CE mini pyboard 開發板是基於 ST公司 的 STM32F401CE 高效能 ARM Contex-M4 為工作核心,並以 MicroPython 程式語言方向所設計的開發板。因此 SWIO/SWCLK 接腳內定會定為一般的 GPIO 來使用。開發板與電腦接口完全只依靠 STM32F401CE 本身的 USB Port 做為程式開發通訊手段。當然也可回歸於標準 C 語言開發模式。