The ide doesn't know portm yet, but you can use the registers direct yourself.
Set port direction:
[code:1:8cdc73d26b]DDRM= $B00001010[/code:1:8cdc73d26b]
Read a pin:
[code:1:8cdc73d26b]a= PINM.1[/code:1:8cdc73d26b]
Set a pin:
[code:1:8cdc73d26b]Set PORTM.2[/code:1:8cdc73d26b]
↧