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

WinStar WG320240C

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



Joined: 09 Feb 2005
Posts: 48

View user's profile Send private message

WinStar WG320240C
PostPosted: Wed May 30, 2007 7:32 am     Reply with quote

Hi,

I have been using the WinStar WG320240C Glcd that is built in controller with SED1335. I wrote the following code. I only see the line on panel. his line is nearly the center of screen. What is wrong?

is <SED1335.c> correct drive for WinStar WG320240C?

Code:
#include <18F452.h>
#fuses NOWDT,HS, NOPUT, NOPROTECT, BROWNOUT, NOLVP, NOCPD, NOWRT, NODEBUG
#use delay(clock=20000000)


#include <SED1335.c>
#include <graphics.c>
//#include <math.h>

   int1  warn = FALSE;
   int8  adc = 0, adc_old = 0;
   char  voltText[] = "Volts", warning[] = "Warning";
   float theta = 0;
 
 void displayVoltage(int adc) {
   char voltage[9];
   sprintf(voltage, "%f", (float)adc * .01960784); // Converts adc to text
   voltage[4] = '\0';                              // Limit shown digits to 3
   glcd_rect(45, 18, 69, 25, YES, OFF);            // Clear the old voltage
   glcd_text57(45, 18, voltage, 1, ON);            // Write the new voltage
}

void main()
{

char  Text1[] = "12345678", warning[] = "Warning";

//set_tris_b(0x00);
glcd_init(ON);

while(1)
{
//output_toggle(pin_b1);

delay_ms(200);
glcd_text57(0, 0, Text1, 1, ON);        // Display text
glcd_text57(0, 20, warning, 2, ON);        // Display text

}
}
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