User Activity

The point is that when you press a button, an LED should flash three times.If you press the button again while it is flashing, the LED must flash 3 times again.The whole thing should be implemented without blocking code.I could could use a loop to ma...
I want to read one character from the UAR and display it.I am using CoolTerm.But nothing is displayed.What's wrong with my getchar function?Or is the code in the while loop wrong?char getchar() { char data[1]; HAL_UART_Receive(&huart2, (void*)dat...
I am using Cool Term to print text to the USART.How can I make a new line?Now, it looks like this:TextTextText.....But I want it like this:TextTextText......
I want to get one character at position x from the USART.Here is my current code:What do I have to do differently?char *getchar(int position){ char data[1]; data[0]=HAL_UART_Receive_IT(&huart2, data, 1); return data; }
I am using a Nucleo F091RC.When I create a new project, the .../Inc/usart.h .../Src/usart.c .../Inc/gpio.h.../Src/gpio.c files are missing.The button on the board is declared as GPIO_InputThe LED on the board is declared as GPIO_OutputPA2 is declar...