Grove_4Digital_Display icon indicating copy to clipboard operation
Grove_4Digital_Display copied to clipboard

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

Open petermisovic opened this issue 3 years ago • 4 comments

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 avatar Mar 13 '21 22:03 petermisovic

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.

petermisovic avatar Mar 13 '21 22:03 petermisovic

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.

JoseCintra avatar Oct 22 '21 15:10 JoseCintra

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

petermisovic avatar Oct 22 '21 15:10 petermisovic

@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.

Combinacijus avatar Oct 23 '21 11:10 Combinacijus

@petermisovic @JoseCintra Is your problem solved now?

ackPeng avatar Oct 16 '24 07:10 ackPeng