Skip to content

Commit

Permalink
Update 2024-09-19-stm32devboard.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jordancormack authored Sep 21, 2024
1 parent 1971f88 commit efb3ccb
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions _posts/2024-09-19-stm32devboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,24 @@ See the below screenshot for Arduino IDE settings, first selecting the board (Ge
To put the board into DFU mode to program over USB, hold down the boot button, and either press the reset button, or unplug and plug back in the USB if there isn't a reset button. No COM port will show up when in DFU mode, but it will show up in Device Manager (Windows). Once programmed, a COM port will become available for the serial connection (assuning the above settings are selected).

The user LED is on pin PB12, and CAN RX and TX are on PB8 and PB9.

### Example Code

```
// Serial and LED code for Jordan's STM32 Dev Boards
void setup() {
Serial.begin(115200);
pinMode(PB13, OUTPUT);
}
void loop() {
digitalWrite(PB13, HIGH);
Serial.println("LED ON");
delay(1000);
digitalWrite(PB13, LOW);
Serial.println("LED OFF");
delay(1000);
}
```

0 comments on commit efb3ccb

Please sign in to comment.