From 1a0561a64ec6123c690d3b9b7cd7fad1e15d059d Mon Sep 17 00:00:00 2001 From: Jean-Daniel Nicoud Date: Tue, 14 May 2019 00:08:41 +0200 Subject: [PATCH] Ajout lib Glis.h --- src/Glis.h | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 src/Glis.h diff --git a/src/Glis.h b/src/Glis.h new file mode 100644 index 0000000..ffab207 --- /dev/null +++ b/src/Glis.h @@ -0,0 +1,34 @@ +//Glis.h sliding average on 16-bit variables +//#include "Glis.h" IniGlis1,IniGlis2 (valeur); + #define Lglis 8 // Buffer length + int32_t tot1,tot2; + int16_t taGlis1[Lglis], taGlis2[Lglis]; + uint8_t ptTaGlis1, ptTaGlis2; + +void IniGlis1 (int16_t dd) { //prepare table + for (byte i=0; i