Atmel studio 7 and Arduino libraries for AVR

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

Is it possible to use the arduino libraries by linking/importing into AS7 ? I would like to use the libraries for programming the Atmel AVR controllers (not Arduino boards).

 

EDIT  : Sorry I posted in the wrong thread,but i am not able to move the topic

 

Last Edited: Mon. May 29, 2017 - 03:21 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Sure you can do this. The major addition between AS6.2 and AS7 was they added an "Arduino importer" so just write a quick INO sketch in Arduino that mentions the libs you want to use then import that into AS7 and it will pull in all the bits of Arduino code that are necessary to support the libraries used. 

 

That does, of course, raise the question of "why bother?" - what's the benefit of moving to AS7? The only thing I can think of is debugging. 

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

Sorry for the late reply, I wanted to add the wire library of Arduino into AS7. So that I can communicate Arduino board and AVR board via SPI or IIC . Wire library is much simpler for coding(ofcourse the underlying operations far hidden),So i thought this would be easy

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

clawson wrote:

Sure you can do this. The major addition between AS6.2 and AS7 was they added an "Arduino importer" so just write a quick INO sketch in Arduino that mentions the libs you want to use then import that into AS7 and it will pull in all the bits of Arduino code that are necessary to support the libraries used. 

 

That does, of course, raise the question of "why bother?" - what's the benefit of moving to AS7? The only thing I can think of is debugging. 

 

So,If I write a code of Arduino [as transmitter ]in Arduino IDE, the same code can be imported to AS7 and it would work on a AVR board, is that right ?

 

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

pika wrote:
So,If I write a code of Arduino [as transmitter ]in Arduino IDE, the same code can be imported to AS7 and it would work on a AVR board, is that right ?

 

It will work, IF, the AVR board is similar to the Arduino board!  Same MPU, same clock speed, same pin connections, same VCC, etc.......

 

 

Jim

 

Click Link: Get Free Stock: Retire early! PM for strategy

share.robinhood.com/jamesc3274
get $5 free gold/silver https://www.onegold.com/join/713...

 

 

 

 

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

thanks a lot !!!