janjongboom / mbed-simulator

Experimental simulator for Mbed OS 5 applications
Other
173 stars 66 forks source link

potentiometer real time #46

Closed cabelotaina closed 4 years ago

cabelotaina commented 4 years ago

I'm using this simulator to do some study for my master.

And I'm trying to do three potentiometers change the color of the ST7789H2, its nice and works very well. The problem is the potentiometer only changes the color when I release the slider. Why it happens? This is normal or have some connection with the fact the simulator isn’t real time? If I'm using a real toolkit with real stuff this happens in same way? Sorry if this is not the correct place to do this questions...

Here is my code: https://simulator.mbed.com/#user_1592168676516

And this is the app:

image

Thx in advance

janjongboom commented 4 years ago

@cabelotaina That's the way the slider element works currently, only updates the value after you release it. https://github.com/armmbed/mbed-simulator might be able to help you further, as that's where development is done now.