You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The LED GPIO is defined by its SFR bit address. I wanted to use the address of the port bit, but SDCC doesn't permit the address operator on __sbit i.e. pushPull(&P1_4);.
If you like this solution, I'll submit a pull request.
The text was updated successfully, but these errors were encountered:
I changed the blink example to use an function for changing the pin mode, so it will work with any GPIO pin on P1 or P3.
https://github.com/nerdralph/ch554_sdcc/blob/master/examples/blink/main.c
The LED GPIO is defined by its SFR bit address. I wanted to use the address of the port bit, but SDCC doesn't permit the address operator on __sbit i.e.
pushPull(&P1_4);
.If you like this solution, I'll submit a pull request.
The text was updated successfully, but these errors were encountered: