Search Results

Search results 1-20 of 51.

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • Greetings, I have discovered a new emulator aimed at system simulation called Renode. renode.readthedocs.io/en/latest/ renode.io/ github.com/renode/renode I have seen it work well on macOS m1, macOS x86, and Windows 10 x86. They use C, C# + .NET/Mono, and Python. Peripherals may be defined as constants in the configuration files, inlined python for simple digital behavior, C# for more complex behavior, C for fast behavior, OR in Verilog for HDL simulated peripheral core behavior. The have also i…

  • Florian, That is a useful detail of the API. The only other is GRAPH_DATA_XY_SetPenSize(). Any thoughts about pen size for GRAPH_YT? Cheers, Joe

  • Florian, I am using the GRAPH_XY as a GRAPH_YT (strip chart) because, at the time, it allowed a customization that I could not get to work for GRAPH_YT. I may need to do a quick test to see if GRAPH_YT can be customized as I have GRAPH_XY. There is scrolling through the data using softkey buttons. Upon review of my notes, I see that GRAPH_YT lacks the GRAPH_DATA_XY_SetLineStyle() capability, which is a show-stopper for its use. Is there a way to set LineStyle for GRAPH_YT? Cheers, Joe

  • Greetings! GRAPH_DATA_XY_AddPoint() takes a GUI_POINT which is a signed 16 bit value for X. I have a long running strip chart which will overflow. Upon testing the 32767 (2^15 - 1) barrier, it appears to not handle it well. I tried resetting it to 0 after 32767, but that is also not working. What is the recommended practice for a long running monotonically increasing X which overflows the 16 bit signed max in the GRAPH_DATA_XY widget? Related xref: Is there a way for getting data added to GRAPH_…

  • Use AppWizard font in emWIn

    jhgorse - - emWin related

    Post

    How do I access the AppWizard font in emWin? I see the variable acArial_24_Normal_EXT_AA4 is used for the "Arial_24_Normal_EXT_AA4.xbf" font. I see the AppWizard API call APPW_GetFont(). I cannot seem to get APPW_GetFont() to return 0 (success). No combination of using the window, widget IDs (or handles) seems to fill the GUI_FONT structure. C Source Code (10 lines)where ID_SCREEN_00, ID_BUTTON_00 are the AppWizard IDs. It appears I need the GUI_XBF_DATA structure rather than the raw XBF array. …

  • Florian, I started implementing this alpha animation and realized there is no way I know of to generically apply alpha mask to a window widget except via GUI_MEMDEV_FadeInWindow and GUI_MEMDEV_FadeOutWindow. A BUTTON or BOX may have alpha to their background colors. So the notion is to override WM_PAINT messages for those specific callbacks. Does this require manually drawing the widgets and their data with GUI_Draw*() calls? This does not seem like a scalable approach. I have attached an exampl…

  • Florian, Thank you for the compliment. =) I had thought about using animation to blend alpha and blur as well, for fun. The requirement is to blend. Sequentially (blocking mode) is sufficient, though in parallel may be acceptable as well. Because I am stubborn and curious, how can we dig deeper into emWin to see where the glitching comes in? =) I will add the alpha blend to the animation as a test. Cheers, Joe

  • Florian, I removed the GUI_Lib/GUI.lib and GUISim_GUI_USE_ABGR.zip to fit the 1 MB requirement. You will need to re-add GUI_Lib/GUI.lib. Steps to reproduce 1. Compile and run the simulation. 2. Press Down arrow key to focus the first row. 3. Press Enter to select the first row. 4. Observe the animation, then fade in sequence. 5. Press Right arrow key to focus the right button. 6. Press Enter to exit the edit mode. 7. Observe a lack of Fade Out, then the deletion of the window, then the animation…

  • Florian, Yes, those are the routines. The animations occur before and after the fade in/out, sequentially. I need to strip the code to make an example. Cheers, Joe

  • Greetings, I have a custom widget I am making that expands a row when it is selected, then fades in the window for editing. The expansion animation and the fade in work fine. The fade out does not, nor does the returning animation unless I immediately initiation them upon their initial completion. The fade out and following animation are jerky. Rather than solving just this particular problem, I would like to learn how to find where emWin is spending it's time. I have plenty of memory and the pl…

  • Reviewing some of the relevant forum ports more closely, it appears I may need to set up the widget's callback to handle a message that triggers the FadeIn/FadeOut. I am currently using the FadeIn/FadeOut methods on BUTTON widgets. References: Proper way of fading in/out dialogs create a memory device in to a window Cheers, Joe

  • I tried running `GUI_MEMDEV_FadeOutWindow()` elsewhere by sending a message to the parent window's callback function. It still did not fade. However, when I run `GUI_MEMDEV_FadeOutWindow` immediately after the `GUI_MEMDEV_FadeInWindow` then it does appear to work. What's going on? Cheers, Joe

  • Found what seems to be the most relevant API calls: Source Code (2 lines) `GUI_MEMDEV_FadeInWindow()` works when called from an animation OnDelete callback. But `GUI_MEMDEV_FadeOutWindow()` does not work when called from the GUI_KEY callback hook, which initiates the animation.

  • Hello, I am looking to fade the topmost Window Object onto the the Window behind it. The topmost Window will have some Button widgets on it that need faded in and out as well. Is there an easy way to manipulate the transparency of a Window Object and its Children? This seems like the most straightforward approach, but I don't see an easy way to do it. Not quite sure how to make it happen by taking over the WM_PAINT message without just clobbering the painting of the button object. I need to modi…

  • Reuse Animation

    jhgorse - - emWin related

    Post

    This worked. Thank you, Florian! Next animation step is to fade in buttons. Will look into the fading example: wiki.segger.com/Memory_Device_-_Fading_(Sample) Cheers, Joe

  • Reuse Animation

    jhgorse - - emWin related

    Post

    Hello, I have an animation that starts when a button is released in emWin. The animation expands the button's lower Y boundary. When it finishes, the delete callback re-creates the animation for re-use. It animates the inverse motion to go back to the former position. It is started using Source Code (1 line)_OnDelete callback using Source Code (8 lines) I can only run it 4 times before exception occurs. The inverse motion does not appear to get animated, but "jumped" to. How should I be solving …

  • It looks like there are at least three ways to do this starting with AppWizard. They all resort to using emWIn. First, customize the LISTVIEW widget. Second, two screens with the two layouts. Trigger an Interaction by the button and transition to the second screen. Third, one screen with the hidden or uninitialized elements that reveal when the state indicates it ought to. I would be curious to hear implementation hints for customizing the LISTVIEW widget for this purpose. For convenience, here …

  • Hello, Source Code (21 lines) Once it is selected, it expands and the other elements below it move down to make space. Is there a good way to do this with AppWizard Interactions? Cheers, Joe

  • The demo works. Thank you, Florian. I did have to tweak the GUIConf.c to make one of the #ifdefs go around the entire GUI_SPY_* block. Attached is r2 of the HardKeyTest demo. Same instructions as above to simulate: 1. Save & Export from AppWizard 2. Move GUIConf.c to Simulation\Config\ 3. Open solution in Visual Studio 4. Viola =) Cheers, Joe

  • Sounds good. Thank you, Florian!