From 6bff5509938a52a30491fd5fd8c23fd5ada35feb Mon Sep 17 00:00:00 2001 From: leo Date: Mon, 28 Nov 2022 16:50:45 +0100 Subject: [PATCH] constrain --- adapter_ard.h | 2 ++ projet-tuteure-3a | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/adapter_ard.h b/adapter_ard.h index 8bad6c6..fddd318 100644 --- a/adapter_ard.h +++ b/adapter_ard.h @@ -12,6 +12,8 @@ int analogRead(int pin); void digitalWrite(int pin, int level); void analogWrite(int pin, int dc); +#define constrain(amt,low,high) ((amt)<(low)?(low):((amt)>(high)?(high):(amt))) + class serial_c{ public: void begin(int br); diff --git a/projet-tuteure-3a b/projet-tuteure-3a index ce0b434..c54363f 160000 --- a/projet-tuteure-3a +++ b/projet-tuteure-3a @@ -1 +1 @@ -Subproject commit ce0b434e97b67f3418c473741f55fd31ef20684b +Subproject commit c54363fde2edebb39355ba264c1b85dd2258bef4