pi_weather.core.io.rgb_led module

Logic to manage a RGB LED

class pi_weather.core.io.rgb_led.LED(r_pin, g_pin, b_pin)[source]

Bases: object

Class to manage one RGB LED

Parameters:
__init__(r_pin, g_pin, b_pin)[source]

C-tor function to define a RGB LED :param r_pin: Red pin :type r_pin: int :param g_pin: Green pin :type g_pin: int :param b_pin: Blue pin :type b_pin: int

Parameters:
Return type:

None

setup_led()[source]

Function to set up the LED object :return: Nothing

Return type:

None

turn_on()[source]

Function to turn the LED on :return: Nothing

Return type:

None

turn_off()[source]

Function to turn the LED off :return: Nothing

Return type:

None

set_color(r, g, b)[source]

Function to set the color of the LED :param r: Red value :type r: float :param g: Green value :type g: float :param b: Blue value :type b: float :return: Nothing

Return type:

None

Parameters:
close()[source]

Function to close the LED object interface :return: Nothing

Return type:

None

__del__()[source]

D-tor function :return: Nothing

Return type:

None