Author |
Message |
Topic: Graphic LCD driver ST7920 |
javierviana
Replies: 6
Views: 30157
|
Forum: General CCS C Discussion Posted: Wed Jan 16, 2008 12:46 pm Subject: main example |
Yes. This is the CCS’s example, a little modified to work with this driver.
#include "mg1903a.h"
#include "graphics.h"
#include <math.h>
#pragma zero_ram
void ... |
Topic: Graphic LCD driver ST7920 |
javierviana
Replies: 6
Views: 30157
|
Forum: General CCS C Discussion Posted: Fri Dec 07, 2007 4:52 am Subject: Graphic LCD driver ST7920 |
Sorry, the function glcd_pixel is:
void glcd_pixel(int8 x, int8 y, int1 color)
{
int8 v, h, b;
v = y;
h = x/16;
b = 15 - (x%16);
// Modify the actual word.
... |
Topic: Graphic LCD driver ST7920 |
javierviana
Replies: 6
Views: 30157
|
Forum: General CCS C Discussion Posted: Fri Dec 07, 2007 4:45 am Subject: Graphic LCD driver ST7920 |
Here it is my driver. It work fine with the example graphics.c an some predefines:
#byte PORTA = 0xF80
#bit RA0 = PORTA.0
#bit RA1 = PORTA.1
#bit RA2 = PORTA.2
#bit RA3 = PORTA.3
#bit RA4 = ... |
Topic: Graphic LCD driver ST7920 |
javierviana
Replies: 6
Views: 30157
|
Forum: General CCS C Discussion Posted: Tue Nov 27, 2007 8:37 am Subject: Graphic LCD driver ST7920 |
Any body could say me where I can find any driver for a Graphic LCD with the controller ST7920 from Sitronix, and a classic hardware interface of 16 pins (RS, RW, E, D0-D7). The microcontroller that I ... |
|