So, that dingus with the Arduino bootloader...
I just hooked it up to a subset of the thing it's supposed to control. I open someone's demo program that's meant to control such a thing. I go to set the port bit appropriately...
...and...
...I'd put the output on Port C0. Which is a perfectly valid AVR I/O pin, with all the usual functions plus the ability to be an analog input if one's so inclined.
I chose that pin for the good and sufficient reason that it's on the correct side of the chip to be routed to the connector.
But the demo program, and, more to the point, the underlying library, wants to use a Digital I/O Pin. Any Digital I/O Pin.
And the Arduino programming environment things PC0 is Analog Input Zero, and not a digital pin at all.
Oops.
Well, if I just hack the library to use PC0 for my purposes....
Oh, wait. Looks like someone's already dealt with that. Seems PC0 can be Digital Pin 14. Guess I'll try that.
Update: Yup, that worked. And power control is on PC2, which seems to be working as digital pin 16.
Comments