Somebody emailed:
"I want to do some test with an H-bridge, but I don“t know how to use
the scanf() function for receive characters from the UART.
[..]"
The scanf() function is documented in the book "The C Programming Language"
by Brian W. Kernighan and Dennis M. Ritchie.
Its conversion characters are similar to printf()'s.
An example call with scanf() to take just one character is
char array_to_which_the_character_is_copied[some_length];
scanf("%1c", array_to_which_the_character_is_copied[0]);Message
RE: [AVR-Chat] use of scanf
2005-06-23 by Colin Paul Gloster