Me auriga led ring python


#1

hi everyone
I am tried to program my mbot ranger with python
I import megapi in my python program every thing workfine
I would like to turn on just 3 led with this fonction
rgbLedDisplay ( port, slot, index, r, g, b )

so my script is like that
rgbLedDisplay ( Ledport, Ledslot, 1, 0, 0, 200)
rgbLedDisplay ( Ledport, Ledslot, 2, 0, 0, 200)
rgbLedDisplay ( Ledport, Ledslot, 3, 0, 0, 200)

only the third led keep on
the other turn on and off directly
I would like keep them on
how can I do it?


#2

Hi,maybe you can try to use this program and have a try, use this code instead of rgbLedDisplay you used before:
image


#3

Hi rgbsetcolor don t work a all
I have an error message when I use it
Like megapi don t have rgbsetcolor


#4

hi
if you go on the git hub :



rgbLedSetColor isn’t in the source file for the both python


#5

I thought that the Ranger’s Me Auriga board is only Arduino and not Python. And that the MegaPi is the Python option. Please correct me if I’m wrong…


#6

Hi
With the megapi module you can control the megapi board but the meauriga too


#7

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.