GPIO on Atmega 48


has used gpio on atmega48? i've read done on atmel's document 48/88/168, whenever try verify script tells me "a0 not declared in scope." however, can program atmega 328p same code, different board file, no issue.

this leads me believe have issue board file, below:

code: [select]
##############################################################


atmega48.name=arduino atmega48a

atmega.upload.protocol=stk500
atmega48.upload.maximum_size=4096
atmega48.upload.speed=19200

atmega48.bootloader.low_fuses=0xff
atmega48.bootloader.high_fuses=0xdd
atmega48.bootloader.extended_fuses=0x00
atmega48.bootloader.path=atmega
atmega48.bootloader.file=atmegaboot_168_diecimila.hex
atmega48.bootloader.unlock_bits=0x3f
atmega48.bootloader.lock_bits=0x0f

atmega48.build.mcu=atmega48a
atmega48.build.f_cpu=16000000l
atmega48.build.core=arduino


i've tried numerous variants of file, i've reinstalled arduino, , tried different pin mapping no success. time!

the atmega48 same family atmega88, atmega168, atmega328.

perhaps have write own optiboot bootloader.
is boards.txt definition arduino ide 1.0.6 ? should have more lines arduino ide 1.5.8.


Arduino Forum > Using Arduino > Programming Questions > GPIO on Atmega 48


arduino

Comments

Popular posts from this blog

invalid use of void expresion in FlexiTimer2 library

error: a function-definition is not allowed here before '{' token

LED Strip Code