Remap funcion in C for Arduino

For general Flowcode discussion that does not belong in the other sections.
Post Reply
solozerouno
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

Post 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

BenR
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

Post 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.

Post Reply