Mach's so für alle Pins:

Config Pinb.2 = Input

Die Zeile Ein = Portb.2 / 16 verstehe ich nicht.

Gruß Dirk