View previous topic :: View next topic |
Author |
Message |
slipknotcc
Joined: 13 Feb 2010 Posts: 8
|
Flex_Lcd.c help |
Posted: Mon Feb 15, 2010 2:46 am |
|
|
Hey all,
Here is all the include stuffs.
Code: |
#include <16F877A.h>
#include "flex_lcd.c"
#device adc=8
#device ICD=TRUE
#fuses HS,NOLVP,NOWDT
#use delay(clock=20000000)
|
what I am doing is using "int pwm" to set my motor speed through a pot hooked up to a/d. Now I want this speed to be output to an LCD saying "Speed = pwm" , but lcd_putc only outputs Char.
What do I do?
Thanks,
Cory |
|
|
Ttelmah Guest
|
|
Posted: Mon Feb 15, 2010 3:21 am |
|
|
_All_ standard output routines, 'only output a Char'.
You just send multiple characters....
Look at printf. It allows you to build up a string of output characters, _and send them to any output routine you want_. Note the difference between:
printf("Hello");//sends it's output to putc
and
printf(lcd_putc,"Hello");//sends it's output to lcd_putc.....
Best Wishes |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|