![]() ![]() Some setup is needed to tellĪvr-libc about where is its “standard output”. Least on AVR-based Arduinos, as it is provided by the avr-libc, which isĪlways linked with all Arduino programs. Prints the number in the format you described. ![]() Note that it’s not an efficient way to get this job done, you’ll be introduced to better techniques later on in this course (series of tutorials).This is the kind of situation where printf() comes handy: printf("%03d", number) In order to have a message sent once a second. The delay() function is used in this example just to achieve the timing requirement for this LAB.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |