Arduino Issue: LED flickers off when using switchcase and serial monitor input via the keyboard

preview_player
Показать описание
🤩 FREE Arduino Crash Course 👇👇

***Get the code and transcript on our website***

***About Us:***
This Arduino tutorial was created by Programming Electronics Academy. We are an education company who seek to help people learn about electronics and programming through the ubiquitous Arduino development board.

***We have no affiliation whatsoever with Arduino LLC, other than we think they are cool.***
Рекомендации по теме
Комментарии
Автор

Since you might not always have control of the sending device (depending on what you are doing and what the environment is) it would be nice to know how to clear out the serial buffer after reading the first character. That way, no matter who sends what, only the first character would count.

Good video.

duncanpotter
Автор

Before laser printers, there were printers more like automated typewriters. These printers could be made to print bold text by sending only the CR and printing the same text over what had already been printed. Other printers used a typewriter style ribbon that was as wide as the printer paper. In these printers the ribbon only advanced with a LF, and could be cut in two by sending a full line length of characters over and over again with only a CR and no LF.

OO_OK
Автор

Nice explanation! You are making great videos, thank you for that!

tonysfun
Автор

cr and lf are not the same thing, cr returns to the left side, lf advances down a line. Unfortunately the arduino serial monitor does not properly implement these functions, instead it treats them both the same, that doesn't make them the same, it just means the ide is poorly designed. Use a properly implemented serial monitor and they will work as intended.

andreweastland
Автор

Very helpful. Where can I order the diagnosaurus?

stevesonntag
Автор

Thanks for sharing this, I had this issue once and i could't understand what was going on, they say the devil is hiding in the detail, very well explained.

Greetings all the way from Greece

VasilisKarastergios
Автор

LOL. Love the comments in the code. 🚀

cognetic
welcome to shbcf.ru