RTTTL : command not included in build

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
joost d
Normal user
Posts: 56
Joined: 24 Dec 2020, 17:55
Location: Netherlands/ Haarlem

RTTTL : command not included in build

#1 Post by joost d » 23 Nov 2022, 15:38

In the "Log" I get the message "RTTTL : command not included in build".

This is probably due to my "custom build" that I make because I want to use the P141.

In PlatformIO.ini I included "default_envs = custom_ESP32_4M316k". I build with that.
In .\src\src\Custom.h I have included only those plugins and controllers that I need....(P005,P044,P049,P064,P141,C001)

What must I have to do to make the RTTTL command work?

Thanks in advance.

TD-er
Core team member
Posts: 9884
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: RTTTL : command not included in build

#2 Post by TD-er » 23 Nov 2022, 16:28

You should also add:

Code: Select all

#define FEATURE_RTTTL 1
Those defines starting with "FEATURE" have to be set to either 0 or 1.

joost d
Normal user
Posts: 56
Joined: 24 Dec 2020, 17:55
Location: Netherlands/ Haarlem

Re: RTTTL : command not included in build

#3 Post by joost d » 23 Nov 2022, 18:13

OK, but where is the best place to put this line?

User avatar
Ath
Normal user
Posts: 4330
Joined: 10 Jun 2018, 12:06
Location: NL

Re: RTTTL : command not included in build

#4 Post by Ath » 23 Nov 2022, 20:02

joost d wrote: 23 Nov 2022, 18:13 OK, but where is the best place to put this line?
That can go in the Custom.h file, I assume you are already using. Maybe the available FEATURE flags should all be added to the Custom-sample.h file, for easier reference.
/Ton (PayPal.me)

joost d
Normal user
Posts: 56
Joined: 24 Dec 2020, 17:55
Location: Netherlands/ Haarlem

Re: RTTTL : command not included in build

#5 Post by joost d » 24 Nov 2022, 12:31

Thanks,
Rtttl command works fine again.

joost d
Normal user
Posts: 56
Joined: 24 Dec 2020, 17:55
Location: Netherlands/ Haarlem

Re: RTTTL : command not included in build

#6 Post by joost d » 14 Aug 2024, 10:15

Today, I discovered the rtttl command did not work again :(
I remembered and found this thread.
Is there a reason the default is not "#define FEATURE_RTTTL 1"?

User avatar
Ath
Normal user
Posts: 4330
Joined: 10 Jun 2018, 12:06
Location: NL

Re: RTTTL : command not included in build

#7 Post by Ath » 14 Aug 2024, 10:31

joost d wrote: 14 Aug 2024, 10:15 Today, I discovered the rtttl command did not work again :(
I remembered and found this thread.
Is there a reason the default is not "#define FEATURE_RTTTL 1"?
Main reason for not including that functionality is the added size to the binary file. (We've stopped adding features for ESP8266, even Espressif says that platform is deprecated)
Second reason is that you are in control of your Custom.h file, so if you need it, just enable it there ;)

NB: We are trying to suggest people to switch away from ESP8266 to the ESP32 family of MCUs, as they are more capable, and hardly more expensive than ESP8266 units.
When shopping for ESP32, there are several units available with 8MB or 16MB flash memory, and for those units we offer MAX builds that include all plugins, and nearly all features (only a couple of fonts are not included for the AdafruitGFX_helper based display plugins).
These 8MB and 16MB units can be found on ESP32 (Classic), ESP32-S3 and ESP32-C6 units.

When switching to ESP32, please select a build that has LittleFS in the name (and most also have ETH added) as that is the future of the underlying platform, having the latest version of IDF 5.1. Non-LittleFS ESP32 builds use IDF 4.4, and the now deprecated SPIFFS file system, that isn't directly converted to LittleFS, but requires to make a backup first (Tools page, all files will be included in a .tar file), upgrade to a LittleFS build, and then restore the just created backup (mandatory reboot afterwards).
/Ton (PayPal.me)

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 12 guests