Python Forum
Trying to move a RGB ledstrip with slider of my phone in almost "realtime" help
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trying to move a RGB ledstrip with slider of my phone in almost "realtime" help
#1
Hello there,


I am trying to have a RGB led on a 50 rgb ledstrip to move as my finger moves with the slider on my app.
the sliders min & max are.
Min = 0
Max = 49
This means I have 50 RGB LEDs.
So the resolution is good.

I am trying to do this in python but can't figure out how.
The code below is a standard colorwipe of the neopixel library
And as you can see I am doing nothing yet with the data => slider value

def colorWipe(strip, color, data):
    """Wipe color across display a pixel at a time."""
      
    for i in range(strip.numPixels()):
         strip.setPixelColor(i, color)
         strip.show()
         time.sleep(50/1000.0)
Calling the function

colorWipe(strip, Color(0,255,0), incomingData)
So I am hardcoding for now the color red.
Main priority is to have 1 rgb led follow my finger aka slider on the app.

Can somebody point me in the right direction?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Mirror Video Image in realtime makingwithheld 1 427 Oct-30-2023, 02:45 PM
Last Post: Larz60+
  Microsoft text phone verifying account cito 2 980 Jul-21-2022, 12:16 PM
Last Post: cito
  Python Flask Realtime system printout (console) ffmpeg jttolleson 3 2,928 Apr-18-2022, 06:39 PM
Last Post: jttolleson
  Float Slider - Affecting Values in Column 'Pandas' planckepoch86 0 1,395 Jan-22-2022, 02:18 PM
Last Post: planckepoch86
  time setup for realtime plotting of serial datas at high sampling rate alice93 6 3,739 Jan-07-2022, 05:41 PM
Last Post: deanhystad
  Send SMS from my phone number aster 3 2,716 Jul-03-2021, 02:34 PM
Last Post: ndc85430
Photo Customizing Slider Widget fishbackp 0 1,484 Feb-25-2021, 09:21 PM
Last Post: fishbackp
  Slider puzzle captcha resolver, how do this? dw0rd1337 0 3,475 Jan-04-2021, 11:55 PM
Last Post: dw0rd1337
  Keep Toggle View through Slider Steps yourboyjoe 1 1,664 Aug-10-2020, 07:32 PM
Last Post: Yoriz
  python realtime parsing logs anna 2 2,829 Jul-05-2020, 06:36 AM
Last Post: anna

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020