Skip to content

DMBS library for control FERON LED luminaries with custom firmware.

License

Notifications You must be signed in to change notification settings

dmbs-libs/feron

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

feron

Using for control FERON LED luminaries with custom firmware.

Depends on unmodulated NEC protocol library. Output: OC1B pin (positive active).

/*
    Init feron library
 */
void
feron_init(void);

/*
    Abort transmit
 */
void
feron_abort(void);

uint8_t
feron_exec_native(uint8_t command, uint8_t repeat);

/*
    Set BH (0x00 to 0xFF) without dimming effect
 */
uint8_t
feron_bh_set(uint8_t bh);

/*
    Set BH (0x00 to 0xFF) with dimming effect
 */
uint8_t
feron_bh_dim(uint8_t bh);

/*
    Load BH from preset (0 to 15) with dimming effect
 */
uint8_t
feron_preset_load_dimming(uint8_t preset);

/*
    Load BH from preset (0 to 15) without dimming effect
 */
uint8_t
feron_preset_load_force(uint8_t preset);

/*
    Save BH to preset (0 to 15)
 */
uint8_t
feron_preset_save(uint8_t preset);

/*
    Set hue value (0 to 15)
 */
uint8_t
feron_hue_set(uint8_t value);

/*
    Set brightness value (0 to 15)
 */
uint8_t
feron_brightness_set(uint8_t value);

/*
    Add value to hue (0 to 15)
 */
uint8_t
feron_hue_add(uint8_t value);

/*
    Subtract value from hue (0 to 15)
 */
uint8_t
feron_hue_sub(uint8_t value);

/*
    Add value to brightness (0 to 15)
 */
uint8_t
feron_brightness_add(uint8_t value);

/*
    Subtract value from brightness (0 to 15)
 */
uint8_t
feron_brightness_sub(uint8_t value);

/*
    Inverse power
 */
uint8_t
feron_power_inv(void);

/*
    Power on
 */
uint8_t
feron_power_on(void);

/*
    Power off
 */
uint8_t
feron_power_off(void);

/*
    Hue increment
 */
uint8_t
feron_hue_inc(uint8_t repeat);

/*
    Hue decrement
 */
uint8_t
feron_hue_dec(uint8_t repeat);

/*
    Hue rotate
 */
uint8_t
feron_hue_rotate(uint8_t repeat);

/*
    Brightness increment
 */
uint8_t
feron_brightness_inc(uint8_t repeat);

/*
    Brightness decrement
 */
uint8_t
feron_brightness_dec(uint8_t repeat);

/*
    Brightness rotate
 */
uint8_t
feron_brightness_rotate(uint8_t repeat);

/*
    BH random
 */
uint8_t
feron_bh_rand(uint8_t repeat);

About

DMBS library for control FERON LED luminaries with custom firmware.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published