SingingCat 0
application
Data Structures | Macros | Typedefs | Functions | Variables
led.c File Reference

code to make the pretty LED blink More...

#include <main-header.h>
#include "led.h"

Go to the source code of this file.

Data Structures

struct  ledcolour
 
struct  leddef
 

Macros

#define LED_TIMER_FREQUENCY   130
 
#define LED_WHITE_MIN   (250 * 0xFF)
 

Typedefs

typedef struct ledcolour _ledcolour
 
typedef struct leddef _leddef
 

Functions

void led_blink (LED_USAGE_TYPE lut, uint32_t colour, uint8_t brightness, uint32_t on, uint32_t off)
 will keep blinking until told otherwise will repeat endlessly. More...
 
void led_blink_flags (LED_USAGE_TYPE lut, uint32_t colour, uint8_t brightness, uint32_t on, uint32_t off, uint32_t flags)
 
void led_flash (LED_USAGE_TYPE lut, uint32_t colour, uint32_t duration)
 will flash led once More...
 
void led_indicate (LED_INDICATOR a)
 
void led_init ()
 
void led_loop ()
 
void led_off (LED_USAGE_TYPE lut)
 
void led_print_status ()
 
void led_set_machine_managed ()
 
void led_set_user_managed ()
 
void led_set_wifi_managed ()
 

Variables

struct leddef extled = { .pins = { 7, 110, 111 }, .timers = { 2, 1, 1 } }
 
struct leddef intled = { .pins = { 106, 107, 108 }, .timers = { 3, 3, 3 } }
 
struct ledcolour machinecolour
 
struct ledcolour usercolour
 

Detailed Description

code to make the pretty LED blink

Definition in file led.c.

Macro Definition Documentation

◆ LED_WHITE_MIN

#define LED_WHITE_MIN   (250 * 0xFF)

Definition at line 5 of file led.c.