mirror of
https://gitlab.waag.org/make/fablab/interns/2025/sam.git
synced 2025-08-04 20:34:57 +00:00
put code block in collapsible box
This commit is contained in:
@@ -338,7 +338,7 @@ Im going to map everything lower than 80 to 80 using software. The reason im doi
|
|||||||
Luckily there is an arduino function called `map` that can do this. [Source](https://docs.arduino.cc/language-reference/en/functions/math/map/). The syntax is like this `map(value, fromLow, fromHigh, toLow, toHigh)` so it's really easy to use. This is how I implemented it.
|
Luckily there is an arduino function called `map` that can do this. [Source](https://docs.arduino.cc/language-reference/en/functions/math/map/). The syntax is like this `map(value, fromLow, fromHigh, toLow, toHigh)` so it's really easy to use. This is how I implemented it.
|
||||||
|
|
||||||
During coding I realized this could be done way easier and simpler. So this is my result
|
During coding I realized this could be done way easier and simpler. So this is my result
|
||||||
|
??? code
|
||||||
```cpp
|
```cpp
|
||||||
#include <Arduino.h>
|
#include <Arduino.h>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user