From 1c5e47655daa7034e0c45c339956303f01254693 Mon Sep 17 00:00:00 2001 From: Samuel Date: Sat, 4 Mar 2023 10:54:48 +0100 Subject: [PATCH] Ajout lecture capteur 1 uniquement --- main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.c b/main.c index 43fdee6..95da796 100644 --- a/main.c +++ b/main.c @@ -74,6 +74,10 @@ void main(void) case 'K': ws2812_arc_en_ciel(); break; + case 'l': + case 'L': + while(continuous_reading(0x31)); + break; case 'o': case 'O': while(calibration(VL53L1X_device)); @@ -195,6 +199,7 @@ void display_menu(){ printf("I - Init I2C address\n"); printf("J - Lecture distance multiple\n"); printf("K - Arc en ciel\n"); + printf("L - Lecture distance capteur 1\n"); printf("O - Offset Calibration\n"); printf("R - Read distance\n"); }