7 years, 7 months ago.

Scroll in display an uint16 varriable

I want to use "ManagedString" function to indicate the value of an uint16 in the display. How to do ?

uchar8 is possible using a=250; ManagedString a; uBit.display.scrollAsync(a, 2000);

thanks

1 Answer

7 years, 7 months ago.

Would this work?

uint16_t i = 300;
char str[5];
sprintf(str, "%d", i);
uBit.display.scrollAsync(str, 2000);

Accepted Answer

This was the solution, - thanks :)

posted by Thomas Lorenz 25 Aug 2016