Seeed-Studio / Grove_4Digital_Display

Display for digital tube
42 stars 31 forks source link

error: 'class TM1637' has no member named 'displayStr' #16

Closed petermisovic closed 2 weeks ago

petermisovic commented 3 years ago

Library 1.0.0 installed via Arduino 1.18.13 manager (Ubuntu linux).

tm1637 class defined with pins, initialized in setup {tm1637.init(); tm1637.set(BRIGHT_TYPICAL); tm1637.clearDisplay();} and called loop{tm1637.displayStr("L0");}

Verify (or upload code) exits with error: error: 'class TM1637' has no member named 'displayStr' tm1637.displayStr("L0");

petermisovic commented 3 years ago

It is clear, that library version 1.0.0 installed via Arduino 1.18.13, does not contain those member classes in TM1637.h: Screenshot from 2021-03-13 23-32-51.

I have downloaded latest version and building works fine.

JoseCintra commented 3 years ago

Hi @petermisovic

Did you solve this problem? For me, the same errors occur. There are no displayStr or displayNum methods as shown in the examples.

petermisovic commented 3 years ago

Hi, I did solve it, but honestly, I do not remember how:(

Combinacijus commented 3 years ago

@petermisovic @JoseCintra Library installed via Arduino IDE library manager (v1.0.0) does not contain latest functions as you can see here: image

New library version should be released by repository maintainer (@lanselambor maybe?)


In a meantime you can download latest code from Github image And unzip it to wherever your Arduino libraries are installed (but first you should delete already installed Grove_4-Digit_Display library) To find Arduino libraries location go to Arduino IDE -> File -> Preferences and there you'll see Sketchbook location: that folder contains libraries folder in which Arduino libraries are installed.

ackPeng commented 1 month ago

@petermisovic @JoseCintra Is your problem solved now?

Lesords commented 2 weeks ago

Hello,

I\'m going to close this issue, feel free to re-open it if you have any other questions.

[Autocommentary]