Could someone please inform which library should I use?
Need - want to create a simple GUI for the data captured from Arduino. Want to reflect changes in the data, and may also display data. Former alone is also enough for now. Required GUI example - split the display in n rectangular parts, change any single part as may be required, based on data capture. Change example - display the data in that part, or change background color, or change text color(for some default text), any other advice is also welcome.
Thanks and wishes.
your description sounds very theoretical,
also the approach with a grid part would be better understandable
if we know what you want to do / what data you have / need to visualize.
but rectangles with changing text and color… in grid form are
up to rect buttons:
means rects show data, and
with a button function, on click can show more , details…
actually there might be no need to use a library to show some data,
- first get the arduino processing communication going
- design a good way of data transport, i love text lines what look like CVS
- store the data to int or float arrays
println(data); it to console
- print it to canvas with
- organize it as array of text lines…
for graphic elements like GRAPH can start with easy line graphs from the data array
but also could later
or grafica lib…
here is a short beginner info
appended to the real SCOPE show ( you should ignore for now )
where you see already a simple plot function for a running 2 line graph.
Thank you, kII! Shall try something based on what you suggested.
Will the GUI code be running on the Arduino, or on a laptop/desktop Processing sketch that is communicating with the Arduino?
If on the Arduino, what is the connected display?
Display is to be shown on a computer to which the Arduino is connected. Data is coming continuously from the Arduino. Some of that data needs to be selected, used or processed. Display has to be changed based on that processing… We have freedom to choose the rest - GUI on Arduino or otherwise. Hope I understand you correctly.
In that case, run your GUI on the computer in a computer-side Processing sketch, and any Processing GUI library will work – your Processing sketch received the data, and the GUI doesn’t need to be Arduino-specific. The two most common GUI libraries to use are ControlP5 and G4P – they each have advantages depending on what you want your GUI to do.
Thanks. Shall check and try!