From a903b916f09419e7324a2352232e601acc598d67 Mon Sep 17 00:00:00 2001 From: guowenxue <guowenxue@gmail.com> Date: Thu, 28 Jan 2021 17:13:32 +0800 Subject: [PATCH] update lightd main.c, add lux sensor support and test ok --- lightd/hal/hal.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/lightd/hal/hal.c b/lightd/hal/hal.c index 25ac288..e7cb1d8 100644 --- a/lightd/hal/hal.c +++ b/lightd/hal/hal.c @@ -63,6 +63,13 @@ { s_infrared_lines = gpiod_chip_get_line(s_chip, ctx->infrared_pin); gpiod_line_request_rising_edge_events(s_infrared_lines, "infrared"); + log_err("infrared GPIO input lines request for rising edge event ok\n"); + } + + if( tsl2561_init()< 0 ) + { + log_err("LUX sensor TSL2561 initialise failure\n"); + return -2; } -- Gitblit v1.9.1