49 SLCD_DUTY_1_COMMON = 0,
50 SLCD_DUTY_2_COMMON = 1,
51 SLCD_DUTY_3_COMMON = 2,
52 SLCD_DUTY_4_COMMON = 3,
53 SLCD_DUTY_6_COMMON = 4,
54 SLCD_DUTY_8_COMMON = 5,
58 SLCD_PRESCALER_DIV16 = 0,
59 SLCD_PRESCALER_DIV32 = 1,
60 SLCD_PRESCALER_DIV64 = 2,
61 SLCD_PRESCALER_DIV128 = 3,
62} slcd_prescaler_value_t;
65 SLCD_CLOCKSOURCE_ULP = 0,
66 SLCD_CLOCKSOURCE_XOSC = 1,
67} slcd_clocksource_value_t;
78} slcd_clockdiv_value_t;
81 SLCD_CSRSHIFT_LEFT = 0,
82 SLCD_CSRSHIFT_RIGHT = 1,
83} slcd_csrshift_value_t;
139void slcd_init(uint64_t lcd_pins, slcd_bias_value_t bias, slcd_duty_value_t duty, slcd_clocksource_value_t clocksource, slcd_prescaler_value_t prescaler, slcd_clockdiv_value_t clkdiv);
void slcd_disable(void)
Disables the SLCD peripheral.
Definition slcd.c:166
void slcd_init(uint64_t lcd_pins, slcd_bias_value_t bias, slcd_duty_value_t duty, slcd_clocksource_value_t clocksource, slcd_prescaler_value_t prescaler, slcd_clockdiv_value_t clkdiv)
Initializes the SLCD peripheral, but does not enable it.
Definition slcd.c:34
void slcd_clear_segment(uint8_t com, uint8_t seg)
Clears a segment in the display memory.
Definition slcd.c:101
void slcd_configure_frame_counter(uint8_t fc, uint8_t overflow_count, bool prescale)
Configures one of the three frame counters.
Definition slcd.c:105
void slcd_set_circular_shift_animation_enabled(bool enabled)
Enables or disables circular shift register animation according to the configuration set by slcd_conf...
Definition slcd.c:161
void slcd_configure_circular_shift_animation(uint16_t initial_value, uint8_t size, slcd_csrshift_value_t shift_dir, uint8_t fc)
Configures the Circular Shift Register animation, but does not start it. This is pretty obscure and y...
Definition slcd.c:154
void slcd_set_frame_counter_enabled(uint8_t fc, bool enabled)
Enables or disables one of the three frame counters.
Definition slcd.c:121
void slcd_set_contrast(uint8_t contrast)
Sets the contrast level for the display. Valid values are from 0-15.
Definition slcd.c:66
void slcd_configure_blink(bool blink_all, uint8_t bss0, uint8_t bss1, uint8_t fc)
Configures the blink mode, but does not start blinking.
Definition slcd.c:138
void slcd_set_blink_enabled(bool enabled)
Enables or disables blinking according to the configuration set by slcd_configure_blink.
Definition slcd.c:149
void slcd_clear(void)
Clears all display memory.
Definition slcd.c:75
void slcd_enable(void)
Enables the SLCD peripheral.
Definition slcd.c:70
void slcd_set_segment(uint8_t com, uint8_t seg)
Sets a segment in the display memory.
Definition slcd.c:97