Hi,
ich hab ein kleines Problem. Und zwar spiele ich im moment mit RC5.
Hier mal mein Bascomcode:
1 | Do
|
2 |
|
3 | Getrc5(address , command)
|
4 | If Address = 0 Then
|
5 | command = command And &B10111111
|
6 | Locate 2 , 1
|
7 | Lcd "Adr:" ; Address ; " Cmd:" ; command ; " "
|
8 | If command = 12 Then
|
9 | Toggle Portc.1
|
10 | End If
|
11 |
|
12 | Loop
|
Geht auch soweit wunderbar, nur habe ich manchmal das Problem das ein
anderer Code an kommt, als wie der Code der Taste die ich gedrückt habe.
Was ist die Ursache dafür, und wie kann ich es beheben?
Ich habe 2 Fernbedienungen, welche im alltags Gebrauch zuverlässig
arbeiten, bei beiden leigt das gleiche Problem vor.
Gruß Michi262