stm32-rs / stm32h7xx-hal

Peripheral access API for STM32H7 series microcontrollers
BSD Zero Clause License
209 stars 99 forks source link

add new example to control LED1, 2, 3 and 4 on stm32h747i-disco #479

Closed youndong closed 5 months ago

youndong commented 5 months ago

Example : Control LED1, 2, 3 and 4 on stm32h747i-disco

richardeoin commented 5 months ago

Thanks for the PR! This is a nice board-specific example.

Because this example will not compile for some STM32H7 parts (for example those without a SMPS), you need to add an entry for it in Cargo.toml . Right now they are in alphabetical order, so this one would go at the top

[[example]]
name = "blinky-stm32h747-disco"
required-features = ["rm0433"]

Also you will need to run rustfmt on your rust file, which we use for consistent formatting

youndong commented 5 months ago

richardeoin, thank you for your very helpful comment. I am going to request a new PR soon.