olikraus / u8g2

U8glib library for monochrome displays, version 2
Other
5.2k stars 1.06k forks source link

Print don't work on Porting to stm32 #2285

Open Sofiataj opened 1 year ago

Sofiataj commented 1 year ago

hi every body i'm using stm32cubeide and porting u8g2 on that . now i want show a value of sensor on oled but print function don't work .how can i show value on u8g2 porting to stm32?

olikraus commented 1 year ago

The u8g2 print() function is the same print() function as used for serial.print(), In fact u8g2 will just call the print() function of your Arduino Environment. As an alternative function to print() you can use any other function to convert a value to a string and use the normal draw string functions from u8g2. Use sprintf() or itoa() for this.

Sofiataj commented 1 year ago

Hi dear Tanks for regarding my problem is solved. Tanks for help