Is it possible to use Arduino libraries on Atmel Studio while still having access to Atmel's libraries?

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

Hi all,

 

I am trying to implement capacitative touch buttons in my project. I initially thought of going with the CAP1206/MTCH106 with a ATmega808, which will let me use the Arduino ecosystem using the MegaCoreX package.

But now, I came across the megaTinyCore package that extends Arduino package to the ATTiny series. The ATTiny817 comes with PTC which with the help of Atmel's Qtouch library enables support for Touch inputs without any external hardware. It is possible to just use the ATTiny817 without the Arduino ecosystem, but I will interfacing it with a 4 Digit 7 seg LED, to keep the pin counts low I will using a TM1637 IC. The Arduino ecosystem has a library for the TM1637.

 

So I am left with two options:

 

1) Use the ATTiny817 standalone and do the hardwork of intefacing the TM1637 myself

2) Use the Arduino ecosystem which provides a library for TM1637. Arduino also has few libraries for touch sense but I don't know if they are as good as the Atmel's.

 

 

Can I use the program on Atmel studio using both the Arduino libraries and the Atmel's at the for the same chip?

 

Thanks

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

Due to the way Arduino does certain stuff, it's probably easier to use Atmel libraries in the Arduino IDE than vice-versa. But both can be done in principle, though not in an automagic way. It will probably take some effort.

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

Google gives me 5 results on this site for "arduino attiny 817 capacitive touch". I haven't looked to see how relevant they are.

 

I agree it will likely be easier to use the ASF code in the Arduino IDE.

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

El Tangas wrote:

Due to the way Arduino does certain stuff, it's probably easier to use Atmel libraries in the Arduino IDE than vice-versa. But both can be done in principle, though not in an automagic way. It will probably take some effort.

obdevel wrote:

Google gives me 5 results on this site for "arduino attiny 817 capacitive touch". I haven't looked to see how relevant they are.

 

I agree it will likely be easier to use the ASF code in the Arduino IDE.

 

Thanks. I found few links that discuss how to use the precompiled libraries with Arduino, let me try my luck.