Hello,

I'm new to SDCC and want to code the following python code in C:

    def ToggleLED (TheNr):
        LED_On         = PORTB [TheNr]
        PORTB [TheNr]= not LED_On
        return LED_On

Could anyone give me an advice how to write this for "pic16f819".

Many thanx in advance

Markus