jetzt habe ich wieder ein problem ich will bei einem tastendruck ein wort text auf dem display erscheinen lassen nur wird das wort nicht beim tastendruck an sich angezeigt sonder nur wenn ich in die nähe des tasters komme.

habe auch schon entprellt nur hats nichts gebracht:

Code:
$regfile = "m8def.dat"
$crystal = 1000000
$hwstack = 100
$swstack = 100
$framesize = 100


Config Lcd = 16 * 2
Config Lcdpin = Pin , Db4 = Portc.2 , Db5 = Portc.3 , Db6 = Portc.4 , Db7 = Portc.5 , E = Portc.1 , Rs = Portc.0
Config Lcdbus = 4
Cursor Off
Ddrb = &B11111111
Ddrd = &B00000000
Portd.2 = 1
Declare Sub Keypressed

Cls

Do
Debounce Pind.2 , 1 , Keypressed , Sub Keypressed
Loop

Sub Keypressed
Locate 2 , 1
Lcd "mp3"
End Sub
End