Kann Bascom nicht subtrahieren ?
Compilerfehler...
Code:
Config Portc.4 = Output
Led Alias Portc.4
Do
If S5 - S3 = 1 Then
Led=1 'Pin wird auf High, also 5V geschaltet
else
Led = 0 'Pin wird auf Low, also 0V geschaltet
endif
Waitms 100
Loop