Skip to content

Commit 251e38b

Browse files
committed
3.0.3
updated lesson-10
1 parent 9a9e1cc commit 251e38b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lesson-10/stm32c031-keil/main_swap.c

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
#include "stm32c031.h"
22
#include "delay.h"
33

4-
#define LED_RED (1U << 1)
5-
#define LED_BLUE (1U << 2)
6-
#define LED_GREEN (1U << 3)
4+
// LED marked "LD4" on the NUCLEO-C031C6 board
5+
#define LD4_PIN 5U
6+
7+
// external LED to be inserted between GND (short leg) and
8+
// D12 (longer leg) on the CN9 connector
9+
#define LD5_PIN 6U
710

811
int *swap(int *x, int *y);
912
int *swap(int *x, int *y) {

0 commit comments

Comments
 (0)