Ah true Peter.
By way of further explanation for
Tyro and other newcomers,
note that PortC on 28X/X1 pin chips is also the “normal” input pins upon which commands such as SERIN, READTEMP, etc will also function.
However, notwithstandaing some special functions such as i2c communications and PWM, using the PortC pins as outputs on 28 and 40 pin X and X1 chips, is limited to:
HIGH PortC <pin#>, and
LOW PortC <pin#>
As inputs on the 40X/X1 chips, the inputs are limited to testing in IF…THEN commands
IF PortC <pin#> ?? variable/constant THEN
where ?? is the basic tests (< = > etc)
Still that does not preclude careful bidirectional bit-bang type comms on those pins