Microcontroller › AVR › Temperature display on LCD › Hi Hazrat Ali,Connect 8
February 24, 2013 at 3:29 pm
#9173
AJISH ALFRED
Participant
Hi Hazrat Ali,
Connect 8 digital output to any of the port of atmega16. Make sure that you’ve made all the pins of the port as input. Now simply read the port as a whole and you will get the value.
Regarding the decimal conversion, all you need is a function which can convert integer to string. C library already has such a function. Use printf with %d option.