Jump to content


  • Content Count

  • Joined

  • Last visited

About AndyV

  • Rank
  1. I did it. I found that the ADC values should be passed as a parameter "rawvalue" to the function DialCallback(gU16 instance, gU16 rawvalue) called by poll timer. Dial attached to sliders works ok. From ADC as well as from encoder. Now new question. May be not for this topic. How to do text string controlled by dial? Something like frequency readout. I think there is only one way. This is Label. But label can not be attached to simple variable in memory as dial and toggle to objects. Maybe there is an elegant way to do this?
  2. I launched a widgets demo project on STM32F429 Discovery board. Successfully added GINPUT TOGGLE for external buttons. But can't add support GADC analog input to control slider. ADC initialized by calling gadc_lld_init(). This is done. Dial attached successfully by gwinAttachDial(ghSlider1, 0, 0); . It returns TRUE. ginput_lld_dial_poll(DialCallbackFn fn) called periodically with GINPUT_DIAL_POLL_PERIOD. gadcLowSpeedStart(GINPUT_DIAL_DEVICE0, samplebuf+0, GADCCallback, (void *)fn); called by ginput_lld_dial_poll(DialCallbackFn fn) (taken from example). Raw data from ADC in samplebuf. Of c
  • Create New...