Rahix / avr-device

Register access crate for AVR microcontrollers
Apache License 2.0
171 stars 66 forks source link

Make the PINx registers writeable #45

Closed couchand closed 4 years ago

couchand commented 4 years ago

Writing a logic one to PINxn toggles the value of PORTxn, independent on the value of DDRxn. Note that the SBI instruction can be used to toggle one single bit in a port.

Rahix commented 4 years ago

Makes sense, thanks!