Code: Select all
var Sw_1 : sbit at PORTC5_bit; // Pin C.5 = Switch1
var Sw_1_Direction : sbit at DDC5_bit; // Pin C.5 = Switch1
...
Sw_1_Direction := 0; // Switch1 = input
Sw_1 := 0; // Sw_1 Pullup activated
But using the button function I still have to use the pin-# ?
Code: Select all
Button(PINC, 5, 30, 1)
Best regards
Toenne