Go Down

Topic: [GUI] Advanced Object Oriented User Interface (ArdUI) (Read 807 times) previous topic - next topic

ivanseidel

May 19, 2013, 01:14 pm Last Edit: May 20, 2013, 06:35 pm by ivanseidel Reason: 1
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).

Here are a few screenshots of some tests, and also the main UI that I use in my robots:


Arduino DueTimer | https://github.com/ivanseidel/DueTimer
Arduino Thread | https://github.com/ivanseidel/ArduinoThread

Graynomad

Looks interesting, what LCD/LCD interface do you support.

______
Rob
Rob Gray aka the GRAYnomad www.robgray.com

ivanseidel

Hi, I use this library, since it support many LCD types and touch also.
henningkarlsen.com/electronics/library.php?id=51
Arduino DueTimer | https://github.com/ivanseidel/DueTimer
Arduino Thread | https://github.com/ivanseidel/ArduinoThread

Graynomad

Is that your video that shows the same display running on a Mega and a Due? Interesting to see the difference.

I am in the process of designing a Due-like board so am too busy to play with this for quite some time I suspect.

_____
Rob
Rob Gray aka the GRAYnomad www.robgray.com


I curious about what I see on one of the LCD screen shots, 'Test Victim'   :smiley-eek:
_____
Paul

ivanseidel


I curious about what I see on one of the LCD screen shots, 'Test Victim'   :smiley-eek:
_____
Paul


\o/

I'm participating on the Rescue B competition. It's a kind of rescue robot, going on a random maze with random victims. Victims are placed on the wall, and is "electrically" heated. "Test victim" is used to test the co-processor, that implements 10 Infra-red temperature sensors and provide a vector of the direction and the standard deviation of the values. =)
Arduino DueTimer | https://github.com/ivanseidel/DueTimer
Arduino Thread | https://github.com/ivanseidel/ArduinoThread

Go Up