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

AccelStepper.h for stepper control of position, speed and acceleration:

https://github.com/adafruit/AccelStepper

DueFlashStorage for the use of flash memory, read and write:

https://github.com/sebnil/DueFlashStorage

UTFT.h for display lcd, tested with 7" display cte70:
WARNING: the functions with RGB on the parameters reverse the R with B so it uses BGR. So to solve the problem you have to modify the library function. Remember that the rgb color are saved in a word build like that
MSB->rrrrrggggggbbbbb.
so use this code for the reversing

Code:
temp1=( (col>>8) & 0x07) | ( ( (col & 0xff) & 0x1f)<<3);
temp2=( (col & 0xff) & 0xE0) | ( ( (col>>8) &  0xf8)>>3);

then unificate temp1 and temp2 in a single word



http://henningkarlsen.com/electronics/library.php?id=52

UTouch.h for control of a touch screen.
NOTE: pins used are "Clock,Chip Select,Digital in,Digital out,Irq"

http://www.henningkarlsen.com/electronics/library.php?id=55


 
« Last Edit: April 14, 2014, 06:20:15 am by TexArduino » Logged

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

I modified the SimpleModbusSlave lib found at :
https://docs.google.com/file/d/0B0B286tJkafVWVRveVZ3V2N2Q2M/edit?pli=1
... to work on DUE. One can user hardware USART 0,1,2.

I also added a _fonc option , the SimpleModbusSlave_DUE_fonc, so one can do something in the main sketch BEFORE response (useful to compute value of regs). A 2nd fonction is  to update some sketch variables form 1 master global order.


* SimpleModbusSlave_DUE.zip (145.4 KB - downloaded 26 times.)
* SimpleModbusSlave_DUE_fonc.zip (148.8 KB - downloaded 23 times.)
Logged

Dallas, Texas
Offline Offline
God Member
*****
Karma: 30
Posts: 887
Old, decrepit curmugeon
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The final release of the Entropy library, which provides a source of true, cryptographically secure, random numbers on most Arduino platforms, including the UNO, MEGA, Teensy, and Due. 

This final release builds upon the earlier beta releases methods for providing various types of random integers to now also provide random floats, as well as a new method to provide random floats with a gaussian distribution.  All other methods use a uniform distribution, where each possible value has an equal chance of occurring, while the gaussian distribution allows you to specify a mean (average) value and a standard deviation.  This will then produce a series of random floats that would demonstrate those characteristic values if analyzed.  If graphed they would display the typical 'bell curve'.  This new method is most useful for certain types of simulations.  On the AVR based Arduino's as well as the Teensy boards, the library uses timer jitter as the source of the random numbers; however, on the Due it uses the internal hardware random number generator. 

The complete source, along with tests and test results for the library is available from the Google Code depository <http://code.google.com/p/avr-hardware-random-number-generation/>.  For those who just want the library to use, it is available for download from the libraries web page <https://sites.google.com/site/astudyofentropy/project-definition/timer-jitter-entropy-sources/entropy-library>.
Logged

New true random number library available at: http://code.google.com/p/avr-hardware-random-number-generation/

Current version 1.0.1

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

I have successfully tested this Button Library:

http://log.liminastudio.com/itp/physical-computing/arduino-a-new-improved-button-library-with-some-handy-features

It is indeed a very handy library featuring multiple button instances, with pull-up option, debouncing, it distinguishes between pressing shortly and holding the button pressed, etc.  
« Last Edit: June 04, 2014, 02:43:23 am by hbierau » Logged

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

I've incorporated the existing work by Collin Kidder and Daniel Kasamis on due_can into a "unified" CAN library.  One simple API gets you functionality for three different types of CAN controller; Microchip MCP2515, Atmel SAM3X (Due), and Freescale K2x (Teensy 3.1). It's not quite finished yet, but if you are interested in using it, take a look at https://github.com/McNeight/CAN-Library/

Comments and patches are more than welcome.

-Neil
Logged

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

I have the same problem with libraries, but my error is avr/sleep.h:no such file... I get this error when i try to compile BLE Shield example for Arduino Due. Any solution..? Thanks for reply.
Logged

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