Skip to content

Slider Sample #71

Answered by RudolphRiedel
jwestes asked this question in Q&A
Discussion options

You must be logged in to vote

I do not have a full example, I maybe should add one to my demo since this is something less obvious.
I posted this before, somewhere, perhaps on the BRT forum...

In my last project I was using this in TFT_display():
EVE_cmd_dl_burst(TAG(30));
EVE_color_rgb_burst(LIGHT_GREY);
EVE_cmd_slider_burst(50, 270, 700, 20, 0, rpm_request, 550);

And then this in TFT_touch:
switch(tag)
{
case 0:
if(touchtest == 0xffffffff) /* display no longer touched */
{
toggle_lock = 0;

        if(track != 0 )
        {
            EVE_cmd_track(0, 0, 0, 0, 0); // stop tracking
            track = 0;
        }
    }
    break;

...
case 30:
if(track == 0)
{
if(toggle_lock == 0 && active_nad != 0)
{
EVE_cmd_track(…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by jwestes
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants