CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Flex_Lcd.c help

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
slipknotcc



Joined: 13 Feb 2010
Posts: 8

View user's profile Send private message

Flex_Lcd.c help
PostPosted: Mon Feb 15, 2010 2:46 am     Reply with quote

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







PostPosted: Mon Feb 15, 2010 3:21 am     Reply with quote

_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
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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