Kód: Egész kijelölése
$regfile = "m168def.dat" ' ATmega168
$crystal = 16000000
$baud = 9600
Config Portb = Output
$lib "glcdeadogm128x6.lib" ' specify the used lib
'the display was connected with these pins
Config Graphlcd = 128 * 64eadogm , Cs1 = Portb.2 , A0 = Portb.1 , Si = Portb.3 , Sclk = Portb.5 , Rst = Portb.0
'the best option is to control the reset line of the LCD with the micro so you can reset it controlled at startup
'Reset külön van, nem a kontroller reseteli...
Print "start"
Initlcd
Cls
Waitms 10
Showpic 0 , 0 , Plaatje
Waitms 3000
'Lcdat 1 , 1 , "11111111"
End
Plaatje:
'include the picture data
$bgf "ks108.bgf"
'$include "font8x8.font"
Amint valami betűkezeléses programra fut rá, meghal. Valaki találkozott már ilyennel?
Arduino alatt tökéletes, képpel is, betűvel is...