sraiderk
Joined: 09 Feb 2005 Posts: 48
|
WinStar WG320240C |
Posted: Wed May 30, 2007 7:32 am |
|
|
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
}
} |
|
|