From bd648034f5bf178ed650d252bb8e708bf4ba742d Mon Sep 17 00:00:00 2001 From: Phil Howard Date: Fri, 30 Jul 2021 13:30:42 +0100 Subject: [PATCH] Fix LTR559 duty cycle --- drivers/ltr559/ltr559.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/ltr559/ltr559.cpp b/drivers/ltr559/ltr559.cpp index bc48897b..796176c8 100644 --- a/drivers/ltr559/ltr559.cpp +++ b/drivers/ltr559/ltr559.cpp @@ -36,8 +36,8 @@ namespace pimoroni { reset(); interrupts(true, true); - // 50mA, 1.0 duty cycle, 30Hz, 1 pulse - proximity_led(50, 1.0, 30, 1); + // 50mA, 100% duty cycle, 30Hz, 1 pulse + proximity_led(50, 100, 30, 1); // enabled, gain 4x light_control(true, 4);