.. highlight:: python Led === All boards come with an on-board RGB LED. The RGB LED is able to light up the board in various colors and patterns. Users can control the LED with the functions in the `led.h `_ header file. Setting Patterns ---------------- An led pattern is represented by the `MblMwLedPattern `_ struct. Users can configure every part of the pulse or load one of the preset patterns using the `mbl_mw_led_load_preset_pattern `_ function. Patterns are written to the board with the `mbl_mw_led_write_pattern `_ function. To remove patterns, call `mbl_mw_led_stop_and_clear `_; this will also stop pattern playback. :: pattern = LedPattern(delay_time_ms= 5000, repeat_count= 10) libmetawear.mbl_mw_led_load_preset_pattern(byref(pattern), LedPreset.BLINK) libmetawear.mbl_mw_led_write_pattern(board, byref(pattern), LedColor.GREEN) Pattern Playback ---------------- After writing patterns to the board, you can playback the pattern, similar to playing a music track, using `mbl_mw_led_play `_, `mbl_mw_led_pause `_, and `mbl_mw_led_stop `_. :: # Start playing the programmed patterns libmetawear.mbl_mw_led_play(board) # Stop and Clear libmetawear.mbl_mw_led_stop_and_clear(board)