Вопрос

I am trying to communicate with a computer through serial communication with an micro-controller (AVR). I am programming in C, and I cannot figure out how to determine if the user has pressed the enter key in the terminal and was wondering if someone would be able to help me out.

Это было полезно?

Решение

This could be a good question with more details. It sounds like you want to detect at the AVR when the user presses enter at the PC? And that you are using a serial line between the two.

Please provide a copy of the C code running on the AVR. If possible distill or simplify it as much as possible to highlight this particular question.

Finally, on the AVR are you setting an LED on, after the AVR receives a CR or CR+LF?

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top