Display a Floating Value on OLED

Hi

I am reading a float value from a sensor and want to write it to an OLED Display. Unfortunately the OLED display library requires an *Char variable.

no matching function for call to 'U8X8_SH1106_128X64_NONAME_HW_I2C::drawString(int, int, float&)'

How could I solve this issue ?

Many thanks

Study the docs e.g. u8x8reference · olikraus/u8g2 Wiki · GitHub

use setCursor() followed by the regular Arduino print() functions

This topic was automatically closed after 58 days. New replies are no longer allowed.