2018-03-31 04:27 PM
Hi,guys! I need your help, please. How to turn on off four leds on the board of stm32f4 by sending a character using serial communication (example : if I send 'A', blue led is on. Send 'B', orange led is on. Send 'C', red led is on, etc. Until four leds on or off. Thx for your answer before
2018-04-02 02:40 AM
Very easy 4 steps:
1. Write a piece of code to turn an led on and off.
2. Write a piece to receive a char from the uart.
3. Write another piece to tie them together.
4. Done.
2018-04-02 06:12 AM
Beginner 'Getting Started' steps:
https://www.avrfreaks.net/comment/1138166#comment-1138166
See also:
https://www.avrfreaks.net/comment/2079906#comment-2079906
And, with a more ST focus:
2018-04-02 07:37 AM
Or use an Arduino system. STM32F4 is a cool CPU with plenty of places to tinker with, but Arduinos are much easier.
2018-04-02 07:47 AM
But Arduino does not (yet?) have telepathy - you would still have to write the code!
And the process would still be the same ashenry.****
outlined.Note that Arduino is available on STM32:
2018-04-02 07:53 AM
I don't use arduino. Only STM32F4 (interfacing with ADS1298)
But, thx a lot for your answers and suggestions. I'll try it
On Mon, 2 Apr 2018, 19:48 Andrew Neil, <st-microelectronics@jiveon.com>