W806 LiquidCrystal problem

Hallo. I'm having trouble compiling the LiquidCrystal library on a W806 board. Code below:

LiquidCrystal lcd(PB5, PB6, PB7, PB8, PB9, PB12);

void setup() {
  // set up the LCD's number of columns and rows:
  lcd.begin(16, 2);
  // Print a message to the LCD.
  lcd.print("hello, world!");
}

void loop() {
  // set the cursor to column 0, line 1
  // (note: line 1 is the second row, since counting begins with 0):
  lcd.setCursor(0, 1);
  // print the number of seconds since reset:
  lcd.print(millis() / 1000);
}

This is the error I get at compile time:

In file included from C:\Users\Robcio\AppData\Local\Temp\.arduinoIDE-unsaved202371-4072-u7yovo.zpxzp\HelloWorld\HelloWorld.ino:44:0:
C:\Users\Robcio\AppData\Local\Arduino15\libraries\LiquidCrystal\src/LiquidCrystal.h:4:22: fatal error: inttypes.h: No such file or directory
 #include <inttypes.h>
                      ^
compilation terminated.

exit status 1

Compilation error: exit status 1

No problem with Atmega, STM32 or Pico 2040 boards.
Please help.
Robert.

Please comment the lines

in LiquidCrystal.h and LiquidCrystal.cpp files of the library. After that the library compiled successfully for me.

I can't test it with real hardware since i don't have a such display, so I hope you will show your results in the forum :slight_smile:

Thanks for info, but I think i tried that and got a different error. I'll try onece again.
Of course, I will describe everything on the forum, maybe it will be useful to someone.
Implements the RF amplifier driver project. Measurements of voltages, currents, temperature. I need the results to be on the LCD. The speed of measurements and simple mathematical calculations for the proper operation of protections is important.
Thank You. Robert

There are no errors during compilation, but the display is not working

Thank you
I will try to find such a display and test.

HI.

It looks like we managed to find and solve the problem with this library. Could you try another test?

In the file LiquidCrystal.cpp please comment a line

begin(16, 1); 

at the end of void LiquidCrystal::init() method (line 75).

Please let me know if the code works.

Addition

We added fixed version of the LiquidCrystal library to the main W806 package:

1 Like

Thank you very much. I'm away now but I will test when back in Thursday

it's works great now. Thank You very much :smiley:

1 Like

Thank you for your feedback.
Please mark the thread as "solved".

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.