Is it possible to use Arduino libraries on Atmega1281?

Go To Last Post
4 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Arduino libraries work on Atmega1280. Given that Atmega1281 belongs to the same family as Atmega1280 and the difference is a pin reduction in Atmega1281, does Arduino libraries just simply work for Atmega128a with minimal modification? I am not using Arduino IDE. I am using Atmel Studio.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I would have thought they are so similar (it really is just about number of pins (and ports)) that it's almost bound to work. Which peripheral libraries is it that you want to re-use anyway?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

clawson wrote:

I would have thought they are so similar (it really is just about number of pins (and ports)) that it's almost bound to work. Which peripheral libraries is it that you want to re-use anyway?

 

Thanks for the reassuring answer. Basically, most of them - I2C, SPI, UART, PWM, GPIO

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I am confused (some say "always")... you say mega1281 and mega128a. Do you mean both or just the mega1281 as in your thread title?

 

Ross McKenzie ValuSoft Melbourne Australia