From f70b052b789dbac68651591031aabc0b372db8ec Mon Sep 17 00:00:00 2001 From: Bernhard Guillon Date: Wed, 1 Jan 2025 18:22:14 +0100 Subject: space_light: finished the pwm stuff Using a logic analyzer and a multimeter to figguer out why the things did't do what I expected ^^ I wrote a long explanation on the set_rgbcw on how this space light is connected and how it is supposed to work. Also used a work arround for the PWM. --- usr/space_light/include/space_light.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'usr/space_light/include/space_light.h') diff --git a/usr/space_light/include/space_light.h b/usr/space_light/include/space_light.h index e5a604a..b5d1f9f 100644 --- a/usr/space_light/include/space_light.h +++ b/usr/space_light/include/space_light.h @@ -11,8 +11,9 @@ struct RGBCW { void init_led_thread(void *arg); -void setRGBCW(struct RGBCW *rgbcw); -void power_save_mode(); +void set_rgbcw(struct RGBCW *rgbcw); + +void set_timer(uint16_t seconds); // WILL BE REMOVED just for testing void setPWM(uint8_t *values, size_t len); -- cgit v1.2.3