buildxyz-git / nixiclock_ncs314

BuildXYZ firmware the NCS314 NixieClock from GRA&AFCH
3 stars 1 forks source link

Compile error: could not convert 'Rtttl.Rtttl::updateMelody()' from 'void' to 'bool' #1

Open afch opened 4 years ago

afch commented 4 years ago

at NixieClock_NCS314_Firmware.ino string# 285: if (!Rtttl.updateMelody()){ break; }

"updateMelody" declared is "void" in Rtttl.h string# 28: void updateMelody();

Am I using the wrong library? Сan You help?

buildxyz-git commented 4 years ago

I used the following blocking RTTTL and tone library to free up Timer3 for use with red segment of the RGB PWM LEDS.

Rtttl TimerFreeTone

All non-standard libraries are noted in comments beside their respective library in NixieShield.h file included in this repo. I have included them again below:

#include <Rtttl.h> // https://github.com/spicajames/Rtttl // https://bitbucket.org/teckel12/arduino-timer-free-tone/downloads/

#include <Timezone.h> // https://github.com/JChristensen/Timezone

#include <FadeLed.h> // https://github.com/septillion-git/FadeLed

Let me know if this helps! I may update the README to make the dependancies more obvious.

buildxyz-git commented 4 years ago

My mistake actually, I did modify the return value for updateMelody()

The library with with modification is now included in this repo and the README has been updated.

RTTTL library