Page 1 of 1

Remap funcion in C for Arduino

Posted: Fri Aug 20, 2021 12:43 pm
by solozerouno
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

Re: Remap funcion in C for Arduino

Posted: Fri Aug 20, 2021 1:10 pm
by BenR
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.