Have an arduino Nano V3 with built-in .91"OLED display, trying to get a random number from a dice roll to show on OLED. Using U8g2 library by Oliver. Don't see the code to print the digitalRead number on the OLED screen.
all I have so far:
C:\Users\the_c\Documents\Arduino\NanoIfButton\NanoIfButton.ino: In function 'void loop()':
C:\Users\the_c\Documents\Arduino\NanoIfButton\NanoIfButton.ino:34:43: error: no matching function for call to 'U8G2_SSD1306_128X32_UNIVISION_F_SW_I2C::drawStr(int, int, String)'
^
In file included from C:\Users\the_c\Documents\Arduino\NanoIfButton\NanoIfButton.ino:2:0:
c:\Users\the_c\Documents\Arduino\libraries\U8g2\src/U8g2lib.h:292:17: note: candidate: u8g2_uint_t U8G2::drawStr(u8g2_uint_t, u8g2_uint_t, const char*)
u8g2_uint_t drawStr(u8g2_uint_t x, u8g2_uint_t y, const char s) { return u8g2_DrawStr(&u8g2, x, y, s); }
^~~~~~~
c:\Users\the_c\Documents\Arduino\libraries\U8g2\src/U8g2lib.h:292:17: note: no known conversion for argument 3 from 'String' to 'const char'
exit status 1
Compilation error: no matching function for call to 'U8G2_SSD1306_128X32_UNIVISION_F_SW_I2C::drawStr(int, int, String)'Use code tags to format code for the forum
Thanks so much for your knowledge and your time and willingness to help! I am really enjoying this forum and peoples willingness to help without judging. I do try to find answers myself, but after days and sometimes weeks, I ask and this forum never fails. At the beginning of this hobby I said many times that I needed someone I could get help with (meaning in person) but this site is the very next best!