Add HW-269 white LED test with SoftSPI touch and LVGL.
PWM on GPIO22 for on/off and brightness; UI layout keeps slider and power button separate. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
9
include/lamp.h
Normal file
9
include/lamp.h
Normal file
@@ -0,0 +1,9 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
void lamp_init();
|
||||
void lamp_set_on(bool on);
|
||||
bool lamp_is_on();
|
||||
void lamp_set_brightness(uint8_t percent); // 0..100
|
||||
uint8_t lamp_brightness();
|
||||
Reference in New Issue
Block a user