mymps3
New Member
Chat GPT tells me this....
This is actually important:
Because C.4 is input-only:
So your LED behaviour looked like a software bug
But it was actually:
So, CAN c.4 be used as an OUTPUT as I have been using it that way.
Thanks everyone !!!!!
P.S.
It is not a normal GPIO pin
It’s tied to internal circuitry (ADC / reset / input structure)
Why your code seemed “glitchy” before
This is actually important:
Because C.4 is input-only:
- it floats
- picks up noise
- sometimes reads HIGH/LOW randomly
But it was actually:
hardware limitation + floating input
So, CAN c.4 be used as an OUTPUT as I have been using it that way.
Thanks everyone !!!!!
P.S.
The important nuance
True for most pins:
- C.0, C.1, C.2, C.3
can be input or output
Exception:
- C.4 is input-only on the 08M2