Ardruio using Adafruit 7-segment display

I'm developing a product using a NodeMCU esp8266 with an Adafruit 7-segment display. Yesterday, it was compiled. Today, without any changes to the source file I got the following error,

/home/builder/opt/libraries/latest/adafruit_led_backpack_library_1_3_1/Adafruit_LEDBackpack.cpp:695:6: error: prototype for 'void Adafruit_7segment::writeDigitNum(uint8_t, uint8_t, boolean)' does not match any in class 'Adafruit_7segment'

void Adafruit_7segment::writeDigitNum(uint8_t d, uint8_t num, boolean dot) {

^

In file included from /home/builder/opt/libraries/latest/adafruit_led_backpack_library_1_3_1/Adafruit_LEDBackpack.cpp:38:0:

/home/builder/opt/libraries/latest/adafruit_led_backpack_library_1_3_1/Adafruit_LEDBackpack.h:376:8: error: candidate is: void Adafruit_7segment::writeDigitNum(uint8_t, uint8_t, bool)

void writeDigitNum(uint8_t x, uint8_t num, bool dot = false);

^

/home/builder/opt/libraries/latest/adafruit_led_backpack_library_1_3_1/Adafruit_LEDBackpack.cpp:726:6: error: prototype for 'void Adafruit_7segment::writeDigitAscii(uint8_t, uint8_t, boolean)' does not match any in class 'Adafruit_7segment'

void Adafruit_7segment::writeDigitAscii(uint8_t d, uint8_t c, boolean dot) {

Cool! A good error message. +.5.

Could you post the well formatted code in code tags?

Did the library update overnight?

What was the last thing you changed?

The only thing I can see that might be a conflict is the difference between 'bool' and 'boolean'.

In Adafruit_LEDBackpack.h (line 376) the function is declared:
void writeDigitNum(uint8_t x, uint8_t num, bool dot = false);

But in Adafruit_LEDBackpack.cpp (line 695) the function is declared:
void Adafruit_7segment::writeDigitNum(uint8_t d, uint8_t num, boolean dot) {

Similarly for writeDigitAscii.

I think 'bool' and 'boolean' are supposed to be the same but I'm not sure how they could end up different, unless someone defines a macro.

try a short demo sketch - just the initialization of the display and one single "print".
Does it work?
If not - post this example sketch in code tags so we can check it.
Additionally - please note which ESP core Version have you installed.

P.S.: some time ago I made a Library for HT16K33 based displays. It provides the common "print" interface. You might give it a try:
https://werner.rothschopf.net/201909_arduino_ht16k33.htm

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