Hey #Arduino crowd, I got a problem with using "analog" pins as digital I/O, spe...
DJ🌞[arbejdsløs] :donor: @infosecdj@infosec.exchange
Hey #Arduino crowd, I got a problem with using "analog" pins as digital I/O, specifically digital inputs, which I can't seem to solve. Using them as outputs works just fine.
The problem is, the pins always read as 1's when pull-ups are enabled, despite them being driven externally. There's a 8-bit bus connected to PC2..0 and PD7..3, and it is only PORTC pins that misbehave. I checked both continuity and with the o'scope, the lines get pulled low all the way to the solder joint on the Arduino board. I rule out bad solder joints at the MCU because pins work fine as outputs. I feel this must be something in firmware, but I have no idea what. My code is compiled as a sketch, if that helps in any way to diagnose it.