Dec-26-2020, 07:58 AM
HI.
Im trying to control a leds color sending data from pc to raspberrypi.
But instead of sending the RGB numbers I want to send a word like PURPLE
If I do this:
But if I send the word PURPLE through serial it doesnt.
is this a string?
Im trying to control a leds color sending data from pc to raspberrypi.
But instead of sending the RGB numbers I want to send a word like PURPLE
If I do this:
PURPLE = (255,0,0) trellis.color(3,5, PURPLE) # x and y coordinates and colorit works.
But if I send the word PURPLE through serial it doesnt.
is this a string?
PURPLE = (255,0,0)
