Remap funcion in C for Arduino
-
- Posts: 113
- http://meble-kuchenne.info.pl
- Joined: Tue Dec 08, 2020 4:36 am
- Has thanked: 2 times
- Been thanked: 2 times
Remap funcion in C for Arduino
There is the possibility of converting from 10bit to 8bit with the function in C "REMAP" for Arduino in which, for example, a value is read from A0 and refers to the Pwm, for which the bits are read at 10 and written at 8 .. ... How is it with Flc9? Thanks Solozerouno
-
- Matrix Staff
- Posts: 1727
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 438 times
- Been thanked: 602 times
Re: Remap funcion in C for Arduino
Hello,
Under Storage is a Map component that should hopefully do what you need.
This might be overkill for a simple 10bit to 8 bit conversion.
Eg in a calculation icon
8bitval = 10bitval >> 2
Or
10bitval = 8bitvalue << 2
Let us know how you get on.
Under Storage is a Map component that should hopefully do what you need.
This might be overkill for a simple 10bit to 8 bit conversion.
Eg in a calculation icon
8bitval = 10bitval >> 2
Or
10bitval = 8bitvalue << 2
Let us know how you get on.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel