Add build instructions

This commit is contained in:
Jan Mrna
2026-03-21 10:54:18 +01:00
parent d2305393f5
commit 911837e964
+11
View File
@@ -22,3 +22,14 @@ So I decided to create a simple driver for these LEDs.
We will not use any LED driver IC. We will either simply use constant voltage, or use MCU to do PWM regulation to control the current. We will not use any LED driver IC. We will either simply use constant voltage, or use MCU to do PWM regulation to control the current.
## Design ## Design
## Notes
In fw folder run:
```
cmake -DCMAKE_TOOLCHAIN_FILE=cmake/gcc-arm-none-eabi.cmake -S ./ -B Debug -DCMAKE_BUILD_TYPE=Debug
arm-none-eabi-objcopy -S -O binary led_driver.elf led_driver.bin
st-flash write led_driver.bin 0x8000000
```