Jump to content

MobileWill

Members
  • Posts

    103
  • Joined

  • Last visited

Everything posted by MobileWill

  1. I had read that wiki but I don't quite understand the header. { 'N', 'I', width.hi, width.lo, height.hi, height.lo, format.hi, format.lo } I was able to use a utility to generate an array of pixel data. Each element is a 16bit hex value with color of that pixel. I wrote my own loop to read it back. I converted to RGB888 and then used the RGBCOLOR macro to set the color before using drawpixel. If I add the header and make it a native format then I could set the container to use the image instead. The question is will the container redraw every time I draw a pixel to it? I rather it not since I am handling that myself so that I only redraw the one pixel that needs redrawing instead of the whole image. In my first working test it is working nicely. The idea is to have a high quality image as the graph background. Load the image to the display and then once the graph updates only redraw the pixel for that x,y and then draw the new data point.
  2. Are there any examples of using native image format? I would like to try it for RGB565. I want to be able to read a pixel at run time. Thanks.
  3. Also can the studio add a bmp to the project without having to add it to an object? Can a container have an image background? Or shall I layer a imagebox on top? Then my label on top of the image box? I don't see a way for labels to be transparent. Thanks.
  4. Is there away to only load a certain pixel from a bmp? I am working on improving graphing performance while at the same time increasing the visual quality. I have a way to do it but I need a way to read back 1 pixel of a bmp of the graph background. Right now I just create an array of HTML color hex values but seems like there should be a better way to use some builtin function. I made the array myself. I haven't found a converter from BMP to C HTML Hex color array. Thanks.
  5. I suppose I can try it again. I do believe you can't use the GUI to include files and has to be done in the Makefile and such. I remember it was a pain figuring all that out but I did have it working at one point. I think my issue was the file paths of the hex/elf files was different from the makefile vs compiling with the IDE. So the debugger couldn't load the hex/elf to the target. But right now I can't use the debugger with win10 because it only sees the stm32f411 and not the stm32429. THey haven't fixed the stlinkdbg. So when I need to debug I have to copy the project to a Win7 VM that works. There are weired issues in Win10 with the stlinkdbg. Anyways that's another subject.
  6. I will look into creating a widget this weekend. I meant that Embitz can use a Makefile but is it external to Embitz so you lose debugging and all the integration. It basically becomes a glorified notepad.
  7. So in the widget I would use gdispDraw instead of gwinDraw which I am using now inside a container. I need to stick with single file because using a makefile in Embitz I lose a lot of functionally since it spawns it as a external process. I keep thinking I should of used Eclipse but really like Embitz.
  8. Sounds like I should just create my own buffer and copy that to the display in one draw loop for the graph. Would that work? Create an array of each pixel and color? Loop through and apply it or will that be too slow?
  9. MobileWill

    Features

    Hi, Are there plans to add gesture support? I was thinking you could swipe to change contianers or something like that. Also can the remote display work over serial links, like USB or Bluetooth?
  10. Thanks! When using pixmap do I need to increase displays to 2? I am getting error: 'GDISPVMT_pixmap' undeclared (first use in this function)
  11. MobileWill

    Dropdown

    It was from this video It could be a listbox.
  12. I was referring to this demo I believe it is linked on the demo page too. I am using the stm32429 discovery board. So should be plenty of power, but I am doing a lot of other threads but the display is fast so far. I will try the pixmaps before I spend the time doing my own graph.
  13. MobileWill

    Dropdown

    I saw in one of the demos a dropdown menu. How is that created? Button the shows a hidden list box?
  14. I am working with the graph widget and the only way I could get the graph to clear and draw the new data cleanly is to clear it and reset the graph object and then draw the data. Is this the correct way? I notice a slight flicker in doing this. I split the thread into two. One for data gathering of a ring buffer and another to redraw the graph. That way the data and graph can have separate timings. I saw the oscope demo and its redraw is super fast and smooth. I wish I could see the source code for that. I can't seem to find it. Here is my current graph code. The graph widget is in a container. while(true){ if(updateGraph){ gwinClear(ghGraph); gwinGraphSetOrigin(ghGraph, 5, 5); gwinGraphSetStyle(ghGraph, &GraphStyleCurrent); gwinGraphDrawAxis(ghGraph); for (i=0; i < GRAPH_MEMORY; i++) { uint16_t val = mapI(graph_Mem[(i+ring_idx)%GRAPH_MEMORY], 0, autoscale_limits[graph_MAX], 0, 185); gwinGraphDrawPoint(ghGraph, i, val); } } chThdSleepMilliseconds(100); }
  15. How can I track if the frame is closed/destroyed? So I can resume updating? What if I set the underlying container as parent will it handle overlap? Right now I have a container with a graph under where the settings frame shows. Thanks.
  16. Not to bring a thread from the dead but this solved my problem of the graph not showing. I was just testing the axis without plotting and for a split second I could see them. I put the graph in an container but didn't help till I did the clear first.
  17. Thank that will work. I can use tabset for the settings frame and radios for the main screen with multiple graphs. That explains one of the demos I saw then.
  18. Is it possible to have a vertical tabset? Basically the tab buttons on the right side instead of on top? I have more room to work with horizontally instead of vertical. Thanks.
  19. Just wanted to mention there is a typo in the checkbox wiki http://wiki.ugfx.org/index.php/CheckBox if (((GEventGWinCheckbox*)pe)->checkbox == ghCheckbox1) { should be if (((GEventGWinCheckbox*)pe)->gwin == ghCheckbox1) { That is the change that worked for me.
  20. Good points. My case is a settings frame to set the date/time and eventually other things. So it might be accessed a lot vs another frame for SD card info. If the frame is not destroyed would it retained the selected list items?
  21. I just started playing with the frame features and its awesome. I have one issue. I have some labels underneath that are updated once per second. The issue is once the frame window is open the updated label shows on top. Is there a way to set the frame as the top layer or do I have to handle not updating the labels underneath? Once I setup my graph the issue will be larger. Right now the label just over writes the top left corner. I also noticed that once you close the frame it is destroyed and I have to created it again if needed. Is that the proper way to handle frames? I am using a frame to bring up a settings window for the user to configure various options. Thanks.
  22. Thank you the clears things up a lot. I do notice that it is drawing the pages much faster now. Is the default white supposed to be straight white? It does't look white to me. But actually looks okay. (off topic) And one more thing, will the studio eventually get frame and graph support?
  23. Do I use a container to apply the style to the entire page? What is the difference of putting an image in the background vs imagebox on the page?
  24. Thanks for the help. I will redo the backgrounds. It was before I saw the widgetstyles.
  25. I am on Win10x64 with Embitz. Studio is latest 0.12. I changed the name of the color without the underscore and that seemed to work.
×
×
  • Create New...