MCUdude / MiniCore

Arduino hardware package for ATmega8, ATmega48, ATmega88, ATmega168, ATmega328 and ATmega328PB
Other
979 stars 241 forks source link

PB series not working even with Arduino AVR boards installed #112

Closed JasXSL closed 4 years ago

JasXSL commented 4 years ago

Settings:

The value of PB0 seems to be 0 (should be 8 for ATmega8). The Arduino AVR boards package is installed and up to date.

MCUdude commented 4 years ago

PB0 is defined as 0 in the file iom8.h. It's supposed to be that way.

It's just a macro to make code more readable. If you want to set PB0 high, you'll just write it this way: PORTB |= (1 << PB0);

JasXSL commented 4 years ago

Huh guess they are. I'm used to using them to refer to pins directly on ATtiny and ESP MCUs.