Society of Robots - Robot Forum

Software => Software => Topic started by: tristantech on May 02, 2009, 02:14:53 PM

Title: avr printf()
Post by: tristantech on May 02, 2009, 02:14:53 PM
I have an AVR microcontroller i'm using in a project and I want to send data to the PC. I know how to use the UARTS, but in people's source code, I often see the printf() function in c used to output data. How do you configure this c function to send the data out the port?
Title: Re: avr printf()
Post by: frank26080115 on May 02, 2009, 02:32:11 PM
http://www.nongnu.org/avr-libc/user-manual/group__avr__stdio.html (http://www.nongnu.org/avr-libc/user-manual/group__avr__stdio.html)

look for the example on that page
learn to love the avr-libc user manual