From 3fd727e47eb801873385d108127ed960a415e9f1 Mon Sep 17 00:00:00 2001 From: Christian Zufferey Date: Tue, 30 Oct 2018 21:09:11 +0100 Subject: [PATCH] =?UTF-8?q?-=20essay=C3=A9=20encore=20un=20autre=20truc=20?= =?UTF-8?q?mais=20me=20souviens=20plus=20:-)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Minid1 OLED/hauteur_eau/station_mesure_new/ultra_son.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Minid1 OLED/hauteur_eau/station_mesure_new/ultra_son.lua b/Minid1 OLED/hauteur_eau/station_mesure_new/ultra_son.lua index d2fbc85..dcb91f7 100644 --- a/Minid1 OLED/hauteur_eau/station_mesure_new/ultra_son.lua +++ b/Minid1 OLED/hauteur_eau/station_mesure_new/ultra_son.lua @@ -19,8 +19,12 @@ local ultra_son_stop=0 --Function pour envoyer la pulse function zmesure_pulse() --t1=tmr.now() - fast_write(ztrig, 1) - fast_write(ztrig, 0) +-- fast_write(ztrig, 1) +-- fast_write(ztrig, 0) + +--gpio.serout(ztrig,gpio.LOW,{1,10}) +gpio.serout(ztrig,gpio.HIGH,{10,1}) + --t2=tmr.now() --print("durée: "..t2-t1-314) end