Pages: 1 2 [3] 4 5 6   Go Down
Author Topic: Arduino Due libraries (official and 3rd party)  (Read 81781 times)
0 Members and 1 Guest are viewing this topic.
Brasil
Offline Offline
Full Member
***
Karma: 4
Posts: 125
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi!
As i like libraries, i have done one for Timers on the Arduino DUE.

You can check it out here: https://github.com/ivanseidel/DueTimer

All 6 timers are fully implemented, and ready to play with...


May I ask you how I can use your file? I cannot include any library from out side. Is there anyway to run within one file? I would like to use a timer and change the REG by Serial Monitor.

Hi,
If you want to include the library to your project, than all you nees to do is to copy DueTimer.h and DueTimer.cpp to your sketch folder and include it normaly (#include "DueTimer.h").
What do you mean by change REG? And might I ask why can't you install the library?
Thanks,
Ivan
Logged


PA
Offline Offline
Newbie
*
Karma: 1
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I ported Ken Shirriff's IRremote library to work with the Due with a few improvements:
https://github.com/enternoescape/Arduino-IRremote-Due

Note: Don't forget to use a transistor to drive the IR LED. It might work powered directly, but probably not for long. smiley
« Last Edit: April 16, 2013, 12:21:28 am by enternoescape » Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I updated the RF24 (Nordic nRF24L01+) library to run on the Due.  I ran the basic ping/pong dyn example for testing.

Code: https://github.com/mcrosson/RF24

Edit: You'll need to use the "due" branch from the above repo with the DUE.
« Last Edit: December 26, 2013, 12:28:59 pm by kemonine » Logged

Brasil
Offline Offline
Full Member
***
Karma: 4
Posts: 125
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi!

Finaly, I made the code independent from my own aplications, and could sucessfuly comment EVERY line of code.

What am I talking about?

Well, it's the First, Object Oriented User Interface for Arduino, with an Advanced controller of Touch and Views

https://github.com/ivanseidel/ArdUI/wiki

All based in Events and Callbacks, and also inspired on real Android code, you can easily implement whatever you want with it.

Some key features:
* Touch is handled BOTH in interrupt and Timer
  (Once a touch is triggered on the interrupt, Timer is the one who start trigering the event. Once no touch is detected, controll is passed to the Interrupt)

* Callbacks. Every view has it's own callbacks and events. onClick, onTouch, onChange.

* Touch Events. Like Android, touch events are implemented, such as: ACTION_DOWN, ACTION_UP, ACTION_MOVE, ACTION_HOVER_ENTER, ACTION_HOVER_EXIT

* Views are implemented extending main class View, or other that implements View. Object oriented allows user to extend a class and improve whatever he wants to.
Views already implemented: SeekBar, ProgressBar, Button, CheckBox, TextView and ViewGroup, that allows many views in a single views.

* Tree Rendering: Once a render is triggered, the view start rendering it's own tree. For example:
If you have 5 views inside a ViewGroup, and one of the 5 is also a ViewGroup containing more 10 views, calling a "render()" on the top view of the tree, will start rendering all the views. Also, calling a "render(false)" will start rendering ONLY the "invalidated" views (only what is necessary).

* Relative rendering: If one view is inside the other, it's relative to the other. One position in a view is ALWAYS relative to it's parent. Moving a view that has views inside, cause it's childs to move with it. Rendering, and Touch are handled relative also.

* Changing Between rootViews is very easy (for example, running another function, state,...). Prepare all your views, and then register the current one on ArdUI. He will make the rest...

Documentation is not done yet, and there is a lot to be done (and improved). I'm using it currently on my robots: TendaDigital.net and it seems to be VERY robust and thrustable.

This is the kind of library, that does everything, you just need to know how to use it (Yet, a little complicated, since I'm still documenting).
Logged


Brasil
Offline Offline
Full Member
***
Karma: 4
Posts: 125
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,
I always use this library for myself, and I personaly think that is VERY usefull. Its clear that Arduino doesen't support real parallel processes, but we can "sort" of do it with scheduled tasks.

Yes, there is already an class called "Scheduller", but for big projects (likes the ones I do, with more than 15.000 lines), it's not "good" enought...

I LOVE Object Oriented stuff, and this follows it pretty much.

Check out the library here: https://github.com/ivanseidel/ArduinoThread

It also works for ANY arduino, but I implemented thinking on the DUE, since it's capable of more stuff (I use it with my ArduinOS, and it's just perfect =] )

Any suggestions are welcome!
Logged


UK
Offline Offline
Sr. Member
****
Karma: 7
Posts: 436
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

First version of the DueGUI library is now downloadable...


http://forum.arduino.cc/index.php?topic=164788.0
Logged

Offline Offline
Full Member
***
Karma: 6
Posts: 157
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hey everyone,

I rewrote the T6963 library to interface a graphics LCD using the Toshiba driver with the arduino due.
It is significantly faster than the old version since all data bus lines are on port C of the AT91. All pins used are on the vertical 18*2 pin connector what allows you to use a ribbon cable.
Examples and instructions to hook it up included.

Edit: Fixed bug for UpdateBuff(), speed optimizations

* T6963_due_0_31.zip (10.75 KB - downloaded 63 times.)
« Last Edit: May 23, 2013, 03:18:28 pm by MGOS » Logged

Offline Offline
Jr. Member
**
Karma: 3
Posts: 63
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I modify SFEMP3Shield library from Bill Porter and Michael Flaga so that Sparkfun MP3 shield work with Arduino Due.
You can play files from SD memories or listen to web radios.
See http://forum.arduino.cc/index.php?topic=168914.0
Logged

UK
Offline Offline
Sr. Member
****
Karma: 7
Posts: 436
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

DueGUI library is now at version 0.13 and with the start of some quite thorough documentation.  All the most important GUI objects are already implemented with more to come.  Why not give it a try:


http://forum.arduino.cc/index.php?topic=164788.0
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 18
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

DueGUI seems to be very good. is it possible to run on mega?. Is it possible to run on iboard pro?. I am working now on a iboard pro project.
Logged

UK
Offline Offline
Sr. Member
****
Karma: 7
Posts: 436
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

DueGUI seems to be very good. is it possible to run on mega?. Is it possible to run on iboard pro?. I am working now on a iboard pro project.

It should do but I will have to look up how do the interrupts on the mega too.
Logged

San Salvatore Monferrato IT
Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi guys... Nothing about VirtualWire?

http://www.airspayce.com/mikem/arduino/

I can't compile with Due... does anybody succeeded?
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm hoping for one for the RFM12 line of wireless modules.  Anyone know if that one has been ported yet?
Logged

Offline Offline
Jr. Member
**
Karma: 2
Posts: 59
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I sort of formalized and hopefully simplified randomvibe's original code to run the Due hardware PWM pins 6, 7, 8, and 9 which avoids using slower analogWrite calls.  This was paramount for my application because I'm really pushing the limits of what the Due is capable of.  I'm heavily using nearly every pin on the board and taking advantage of as many of the optimization and hardware features as possible is extremely important.  It's attached...


* DuePWM.zip (4.24 KB - downloaded 78 times.)
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


Adafruit ST7735 and GFX libraries modified to run on the Arduino Due here:

http://github.com/robertkendrick/Due_ST7735

regards
Logged

Pages: 1 2 [3] 4 5 6   Go Up
Jump to: