Pages: 1 ... 4 5 [6]   Go Down
Author Topic: Arduino Due libraries (official and 3rd party)  (Read 65689 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 4
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 1 times.)
* SimpleModbusSlave_DUE_fonc.zip (148.8 KB - downloaded 1 times.)
Logged

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