B
bigreat
Guest
i use ATMEGA32L kontrolu nokia 3310 lcd.
kód je z microsyl.
Tyto je můj hlavní kód:
Kód:
# include "iom32.h"
# include "nokialcd.c"
void delay (unsigned long int);
int as;void main ()
(
LcdInit (); / / init 3310 LCD
LcdClear (); / / jasný LCD 3310
LcdUpdate (); / / data přesunout do cache paměti LCDwhile (1)
(
LcdGotoXY (5,6);
LcdStr (1, "BiGreat");
delay (60000);
LcdUpdate ();
LcdClear ();
LcdGotoXY (9,0);
LcdStr (1, "myasdfasfd");
LcdUpdate ();
)
)void delay (unsigned long int delayValue)
(
unsigned long int;
for (a = 0; <delayValue; );
)
kód je z microsyl.
Tyto je můj hlavní kód:
Kód:
# include "iom32.h"
# include "nokialcd.c"
void delay (unsigned long int);
int as;void main ()
(
LcdInit (); / / init 3310 LCD
LcdClear (); / / jasný LCD 3310
LcdUpdate (); / / data přesunout do cache paměti LCDwhile (1)
(
LcdGotoXY (5,6);
LcdStr (1, "BiGreat");
delay (60000);
LcdUpdate ();
LcdClear ();
LcdGotoXY (9,0);
LcdStr (1, "myasdfasfd");
LcdUpdate ();
)
)void delay (unsigned long int delayValue)
(
unsigned long int;
for (a = 0; <delayValue; );
)