Gast
#809041
Hilfe!!! Ich versuche verzweifelt ein LCD-Display(Controller Ks0066,8x2) an einem ATmega 8 mit der Fleury lib zum laufen zu bekommen. Das einzige was passiert ist dass die erste Zeile des Displays schwarz wird(was aber auch passiert wenn man den µC weglässt und nur Strom dran macht).Ich habe schon etliche Forenbeiträge durchwühlt aber keiner entspricht genau meinem Fall. Ich habe die bei der Lib beiliegende test_lcd.c auf Initialisierung,Display clearen und String ausgeben gekürzt und die Änderungen für mein Display(Reichelt-Bestellnummer:LCD MO082 DIP)in der lcd.h vorgenommen(Anzahl der Zeilen,Zeichen pro Zeile,Pinbelegung). Ich benutze WinAVR(mit avr-gcc compiler). Wenn einer von euch eine Idee hat warum es nicht funktioniert, dann bitte schnell antworten!!! Hier noch der angepasste Teil der lcd.h: #define XTAL 1000000 /**< clock frequency in Hz, used to calculate delay timer */ /** * @name Definition for LCD controller type * Use 0 for HD44780 controller, change to 1 for displays with KS0073 controller. */ #define LCD_CONTROLLER_KS0073 0 /**< Use 0 for HD44780 controller, 1 for KS0073 controller */ /** * @name Definitions for Display Size * Change these definitions to adapt setting to your display */ #define LCD_LINES 2 /**< number of visible lines of the display */ #define LCD_DISP_LENGTH 8 /**< visibles characters per line of the display */ #define LCD_LINE_LENGTH 0x40 /**< internal line length of the display */ #define LCD_START_LINE1 0x00 /**< DDRAM address of first char of line 1 */ #define LCD_START_LINE2 0x40 /**< DDRAM address of first char of line 2 */ #define LCD_START_LINE3 0x14 /**< DDRAM address of first char of line 3 */ #define LCD_START_LINE4 0x54 /**< DDRAM address of first char of line 4 */ #define LCD_WRAP_LINES 0 /**< 0: no wrap, 1: wrap at end of visibile line */