Hacked Gadgets Forum

September 4, 2009

printf and scanf examples for Microcontrollers

at 8:18 pm. Filed under DIY Hacks, Electronic Hacks


Nerd Kits has made an interesting example video showing us how to use C printf and scanf commands.

"Programming in C can be a daunting task for a beginner, especially when new programming languages like Python make it so easy to accomplish basic tasks. Taking input from the user, and displaying data back to the user in a human readable format is one of those things in C that can be tricky if you haven’t done it before. This idea of displaying and reading data in human readable formats becomes especially important in embedded electronics since there often many different ways in which data is represented to the user (over LCDs, or through serial ports). Many times we even use these common input output ideas to transfer data from microcontrollers to PC computer programs, or between different embedded systems."