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 CCS Technical Support

Search found 6 matches
CCS Forum Index
Author Message
  Topic: Reading inclinometer data
cm279

Replies: 8
Views: 8374

PostForum: General CCS C Discussion   Posted: Tue Nov 23, 2010 7:23 pm   Subject: Reading inclinometer data
Had some much more varying results by simply using

puts("*P");
if(kbhit()){
buffer[0]=getc();
buffer[1]=getc();
buffe ...
  Topic: Reading inclinometer data
cm279

Replies: 8
Views: 8374

PostForum: General CCS C Discussion   Posted: Tue Nov 23, 2010 7:08 pm   Subject: Reading inclinometer data
Been attempting to implement some of the ideas suggested here for a couple days.

The latter idea of using the hex data requested with *P has showin limited results.
The code I came up with is belo ...
  Topic: Reading inclinometer data
cm279

Replies: 8
Views: 8374

PostForum: General CCS C Discussion   Posted: Sun Nov 21, 2010 9:03 pm   Subject: Reading inclinometer data
Hey folks, I have a 2-axis serial inclinometer sensor which I'm using for an angle measuring tool to read the angle data and display on an LCD display, similar to some of the new smart phone applicati ...
  Topic: Outputting variables to LCD
cm279

Replies: 4
Views: 7349

PostForum: General CCS C Discussion   Posted: Sun Nov 21, 2010 7:47 pm   Subject: Outputting variables to LCD
Ahh "%Lu" rather than "%u" compiles.
don't I feel stupid Very Happy

Been a long day just built the whole circuit up and been programming and soldering for hours miss obvio ...
  Topic: Outputting variables to LCD
cm279

Replies: 4
Views: 7349

PostForum: General CCS C Discussion   Posted: Sun Nov 21, 2010 6:34 pm   Subject: Outputting variables to LCD
I tried
printf(lcd_putc,"%u",adc1);
which is similair to what I've seen in other code for displaying variables however I get a compling error:

*** Error 114 "lcd_test.c&q ...
  Topic: Outputting variables to LCD
cm279

Replies: 4
Views: 7349

PostForum: General CCS C Discussion   Posted: Sun Nov 21, 2010 6:25 pm   Subject: Outputting variables to LCD
Hey folks, Just wondering if anyone would be able to help out..
I've written a simple code that outputs text to LCD fine, however I'm having problems working out how to display variables, in particu ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group