Hallo, das folgende Programm in Bascom läuft auf einem STK500 mit einem ATMega16 einwandfrei. Mit einem ATMega2560 auf einer Prototypenkarte läuft auch alles, außer die Darstellung der Buchstaben. Es erscheint nur ein schwarzer Balken im Display. Hat jemand eine Idee, woran es liegen könnte? Muss die glcdks108.lib an den ATMega2560 angepasst werden? Danke! $lib "glcdks108.lib " $crystal = 8000000 $regfile = "m2560def.dat" $hwstack = 32 $swstack = 10 $framesize = 40 DDRA = 255 DDRC = 255 Config Graphlcd = 128 * 64sed , Dataport = Porta , Controlport = Portc , Ce = 4 , Ce2 = 3 , Cd = 0 , Rd = 1 , Reset = 5 , Enable = 2 Cls Graph Line(0 , 0) -(128 , 64) , 255 Wait 1 Cls Graph Circle(30 , 30) , 20 , 1 Circle(60 , 30) , 20 , 255 Wait 1 Cls Graph Showpic 0 , 0 , Bild Wait 1 Cls Graph Setfont Zeichen_8x8 Lcdat 6 , 1 , "Test" , 0 Do Loop End $include "Zeichen_8x8.font" Bild: $bgf "bascom.bgf"
Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.