Where is `rgbled` function in code?
-
Where is
rgbled
defined in the source code?I would like to read a little of how the function works behind the scenes.
-
@Matthew-Felgate The question then would be, which web colour set to use. Thus I consider it sufficient as it is. You can always make s little Python module wich defines the color names and reuse that, e.g.
WHITE = const(0xffffff) RED = const(0xff0000) # and so on
-
Could you edit it so that you could do things like
rgbled('red')
,rgbled('blue')
,rgbled('yellow')
etc?You could allow webcolors and just translate to hexcodes behind the scenes.
-
@Matthew-Felgate In addition to the place @Gijs mentioned in the files
modled.c
andmodled.h
in themods
folder.
-
You can find it here: https://github.com/pycom/pycom-micropython-sigfox/blob/Dev/esp32/mods/modpycom.c#L159
All source code for the modules you can import can be found in the
mods
folder.Best,
Gijs