I cant for the life of me get it to compile. I am downloading the .tar nd putting the .cpp and .h into a folder called MorseEnDecoder inside my arduino libraries folder.
im then changing the .cpp to .ino, it tells me to put it inside a folder, so I let it, then drag the .h into the folder. run the .ino........ and try to compile it.
C:\Users\wd\AppData\Local\Temp\ccWxtoue.ltrans0.ltrans.o: In function `main':
C:\Users\wd\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.23\cores\arduino/main.cpp:43: undefined reference to `setup'
C:\Users\wd\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.23\cores\arduino/main.cpp:46: undefined reference to `loop'
collect2.exe: error: ld returned 1 exit status
exit status 1
Error compiling for board Arduino/Genuino Uno.
and get the following errors. Can anybody help ?????
MorseEnDecoder.cpp:75:19: error: variable 'morseTable' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
char morseTable[] PROGMEM =
^
That's a newer requirement. Edit "MorseEnDecoder.cpp" line 75 to add the required 'const' keyword at the beginning.
I have this running now, but it is quite dependant on volume when listening for morse via the microphone..... too loud and it gets it wrong, too quiet and it doesnt get it right. lol
when just right it does however work.
Thanks! I kind of randomly found this thread a little while ago, I wouldn't have known about this otherwise.
I updated the latest beta version (of Nov 25, 2012) I had on that old google code page with your fix. It's now on github (as you can't change what's on the google code page) instead.
If anyone want an older version (without the virtual functions), for now you have to download from the older google code page and make the change you describe (adding "const" at beginning of the line with the PROGMEM array).
It's not a big change anyway. I just figured I could / should update at least one version. Even if it's only ever-so slightly (it could still use some improvements that I never implemented...).
Btw I haven't been active with Arduino for years, basically. The example sketches compile in Arduino IDE 1.8.13. That's all I can say really. Otherwise, no guarantee it'll work as intended and all that.