Show Posts
Pages: 1 2 [3] 4 5 ... 7
31  Products / Arduino Due / Re: Printf in Arduino Due on: December 06, 2013, 10:35:59 am
Well I eluded to this in my previous post, but my 'tuppence worth, is that if you do need to issue "\r\n" then do so, but if the choice is taken away programatically such that "\n" will issue CR/LF regardless.............. what if a user actually requires independent control of "\n" , "\r", "\n\r" or am I missing the point here?

Regards,

Graham
32  Products / Arduino Due / Re: Due GUI (Graphical user interface) - [now community project] on: December 06, 2013, 10:29:20 am
Edward/Ediaz,

Are you still following this thread?

Now I have a preliminary tentative working sketch, I have a few points, one of which I think we perhaps need to collaborate on, the others I only mention that I have discovered, not that I have tried to diagnose or resolve yet.

1st) Touch is flipped on the X axis, but as you will be aware the

Code:
DueGUI.setReverseX(1);

command no longer works as you stripped out the gubbins relating to it.

2nd) Unhide does not appear to work, as yet i have not persued why.

3rd) Text input formatting errors, such as ##, Cap and Space are all stacked and overlapping, again not persued yet, maybe this will resolve itself once I have done more with available font sizes.

My feeling is that we need to resolve the touch side of things more universally than at present, but I did not start to do anything about that yet, if you are still interested in trying to make this a universal project it has to be the way to go.

It would have been nice if there was more interest in this project, besides you, myself and of course Darren!!  smiley-cry

Regards,

Graham
33  Products / Arduino Due / Re: Printf in Arduino Due on: November 30, 2013, 08:58:05 pm
This seems to be a long running issue in a variety of different areas, not just Arduino printf.

Quote
http://ascii-table.com/control-chars.php
Quote
[Ctrl] J 10 0A  LF Line Feed FE A format effector which advances the active position to the same character position of the next line.
Quote
[Ctrl] M 13 0D  CR Carriage Return FE A format effector which moves the active position to the first character position on the same line.

Try playing with an old EPSON FX80 dot matrix printer, you will find it behaves in the manner as defined above as does Windows Hyperterminal, such that if you want to go down a line AND start at the beginning of that line, you NEED to issue both CR AND LF.

The serial monitor in the IDE doesn't care, but that does not mean that people should not be aware of what CR, CR/LF or LF is actually 'supposed' to do.

Regards,

Graham
34  Products / Arduino Due / Re: Printf in Arduino Due on: November 30, 2013, 08:38:59 pm
 smiley-wink smiley-evil All the time it has taken to write all these forum messages, I am thinking CR/LF could have been implemented in less time smiley-wink

Regards,

Grham
35  Products / Arduino Due / Re: Due GUI (Graphical user interface) - [now community project] on: November 30, 2013, 11:29:20 am
Hi All,

I am still tinkering with the text/font side of things, while doing so I came across this slight gremlin if anybody else is still playing with this?.....smiley-roll smiley-razz

Just a small bug in date format, 2 digit did not work correctly, here's the fix:

Code:
void DUEGUI::setObjectDate(int objectNumber,int yyyy, int month, int day, bool dateNorm, bool dateFour){
  if (dateNorm){
    GUIobject_top[objectNumber]=displayNumFormat(day,2)+"/"+displayNumFormat(month,2);
  } else {
    GUIobject_top[objectNumber]=displayNumFormat(month,2)+"/"+displayNumFormat(day,2);
  }
  if (dateFour){
    GUIobject_top[objectNumber]=GUIobject_top[objectNumber]+"/"+String(yyyy,10)+" ";
  } else {
    GUIobject_top[objectNumber]=GUIobject_top[objectNumber]+"/"+String(yyyy,10).substring(2)+" ";
  }
}

Regards,

Graham
36  Products / Arduino Due / Re: Aduino Due + TFT Display on: November 29, 2013, 12:20:04 pm
@ sunilkumarambala5700

One of these will do you fine........

http://www.ebay.com/itm/TFT-SD-Shield-for-Arduino-DUE-TFT-LCD-Module-SD-Card-Adapter-2-8-3-2-inch-Mega-/121057447668?
37  Products / Arduino Due / Re: Printf in Arduino Due on: November 29, 2013, 09:34:59 am
Actually I need to use the printf because as I am targetting to include similar the below
printf("Result Point is %Zd,%Zd",R.x,R.y);

to be honest I don't know how can I do it in the Serial.print

Out of interest, does %Zd format work on Arduino?

Regards,

Graham
38  Products / Arduino Due / Re: Due appears as COM6 port but gives error "No device found on COM6" on upload on: November 27, 2013, 05:03:54 pm
I had been running my programs fine all day until I finally encountered this problem. This thread seemed to be the most helpful, but it seems like this has been going on for a while.
Since I'm relatively new to arduino, would it be better/easier if I seek a refund on my board?

If you have a clone board, it is situation normal, if you have a 'genuine' arduino board, I think you should try to PM Federico with date of purchase, serial number, and supplier you got your board from.

Graham
39  Products / Arduino Due / Re: Screen capture from CTE display buffer? on: November 23, 2013, 06:02:37 pm
@gary,

I would also like to hear the outcome of this question!

I Don't currently have a CTE display yet, funds being one issue, but not the biggest deciding factor. Have you seen the new CTE display with frame buffer? Sufficient to pre-draw 8 screens in buffer memory for almost 'instant' screen draw!

http://www.ebay.co.uk/itm/5-5-0-inch-TFT-LCD-module-CPLD-SDRAM-800x480-arduino-DUE-MEGA2560-4-3-SSD1963-/121186430206?pt=LH_DefaultDomain_0&hash=item1c37462cfe

Now if Henning decides to support this, I would suspect 'proper' screen captures would be possible with this thing, and I would like one for the 'pre-draw' capability...

However, what I actually came here to ask you was prompted by something I am trying to do with DUEGUI. Since you have various/several CTE displays, I wondered if you would be so kind as to supply me with the FONT IC font sizes, such as BVS_34, BVS_28. I understand the suffix to be pixel height, but what about width? Any help you could offer would be much appreciated!

Thanks and regards,

Graham
40  Products / Arduino Due / Re: Due GUI (Graphical user interface) - [now community project] on: November 21, 2013, 10:50:47 am

Btw, I noticed that in last post I failed to mention how to instantiate the DUEGUI object, for others to see:

Code:
#include <UTFT.h>
#include <UTouch.h>
#include <DUEGUI.h>    

UTFT myutft(HX8352A,22,23,31,33);                  
UTouch touch(25,26,27,29,30);
DUEGUI DueGUI(&myutft, &touch);

Thank you Darren for your support. Time is a precious thing, and I can relate to having to many projects and to little time. smiley

Thanks,
Edward

Hmm, what shield are you using with your display? That is not a combination of pins I have seen before....

My tuppence for what it is worth, I think the coldtears DUE shield was probably the first to come out, and naturally mates well with the CTE displays so far favoured by this project until now. As such I think it is worth mentioning the initialisation code for that situation.

Code:
UTFT       myGLCD(ITDB32S,25,26,27,28);
UTouch  myTouch(6,5,32,3,2);
DUEGUI  DueGUI( &myGLCD , &myTouch);

@Edward
,
Quote
The DUEGUI UTouch->getX and getY have to be fudged. I noticed that on my display UTouch doesnt work quite right. So the getX and getY functions take the absolute values and corrects for X and Y.

Is this also the case with the genuine Henning library examples? Also what about the calibration routine? I was just thinking if possible it would be better to cure the cause, not the symptom. Since the underlying aim is now to produce a hardware independent DUEGUI, I just wonder if this fix could potentially cause problems as yet unknown on different hardware?

Was just wondering where the error may have cropped up.

I am still tinkering and going through the changes you have made, I also have yet to finish my test sketch which will essentially just be a modified version of Darren's original demo.

HOWEVER...............This is where I got distracted and went off at a tangent...... I don't like the single 16x16 font option, I was thinking it would be nice to assimilate a variety of fonts which would be a close approximation to the CTE Font ic fonts. The first problem with that idea is 34 point is not divisible by 8... similarly, neither is 28 which are the two principle font sizes in DUEGUI so far that I have encountered.

I was also thinking this is specifically to you Edward, is there anything in particular you want me to try/test/do for you, as I suspect I am likely to go off on several tangents with this thing..... smiley-roll

Regards,

Graham
41  Products / Arduino Due / Re: Due GUI (Graphical user interface) - [now community project] on: November 20, 2013, 06:41:44 pm
I've just changed the thread title too......

Let me know if it needs changing again to reflect versioning etc.

Its nice to see you are still around, and if you feel inclined to stay involved that would be good! smiley-grin

mmmm  rover of any description land or otherwise, they never were great in the wet!!  smiley-lol

G
42  Products / Arduino Due / Re: Due GUI (Graphical user interface) - [now version 0.13] on: November 20, 2013, 06:19:32 pm
Hi Darren,

Well thankyou for all your efforts with this project that gave us the start point.....

It would be nice to see your face around here again at some time in the future should you be able to find the time.... smiley-grin

Regards,

Graham

43  Products / Arduino Due / Re: Due GUI (Graphical user interface) - [now version 0.13] on: November 20, 2013, 04:46:55 pm
Hi ediaz,

I have not fell off the edge of the earth, I am playing, evaluating, and generally messing about with your good work, will get back to you when I have something worthwhile to report.

I think congrats are in order though, well done.

G
44  Products / Arduino Due / Re: Due GUI (Graphical user interface) - [now version 0.13] on: November 14, 2013, 07:05:04 pm
@edward,

Did you have any thoughts on extracting CTE from non-CTE text drawing routines?

I am thinking least possible modification to Henning's genuine working functional libraries..... Best way to implement this?

I suspect we need to attack the text print routines with an external variable of some description??

Better still, buy a CTE display and f**k it...  smiley-razz But that defeats the object of implementing DUEGUI on ANY display....  smiley-roll-blue

Out of curiosity............ what displays have you got? Personally I only have an Sd1289 3.2"..... Struggling to acquire a 5" CTE at the moment, furthermore, I REALLY like the look of the NEW 5" CTE with some new-fangled frame buffer memory, that Henning does not currently appear to support smiley-sad

Choices......choices..... ?

Where to go from here?

Anybody else got any ideas?

Regards,

Graham
45  Products / Arduino Due / Re: Due GUI (Graphical user interface) - [now version 0.13] on: November 11, 2013, 12:48:56 pm
@Edward,

Sorry, computer failure stopped play, back online today.

Give me a day or 2 to catch up on your messages and progress, and I will be able to get a bit more involved I hope.

Cheers,

G
Pages: 1 2 [3] 4 5 ... 7