Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

PIC14: How to access PORT bits?

Help
2006-11-20
2013-03-12
  • 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