¿ªÔÆÌåÓý

Re: Sketch too big


 

Played a little:

bands.cpp
#include "bands.h"
//#include "utils.h"


constexpr Band_t bands [] PROGMEM {
//? {?????? 0UL,????? 255UL, 255, "U8"},//Utility conversion option
//? {?????? 0UL,??? 65535UL, 254, "UF"},//Utility conversion option
//? {? 530000UL,? 1700000UL, 253, "AM"},//Broadcast AM, actually centers at 268, but uint8 can't do that
//? { 1800000UL,? 2000000UL, 160, "A0"},//0xA0 is 160
? { 3500000UL,? 4000000UL,? 80, "80"},
? { 5330500UL,? 5403500UL,? 60, "60"},
? { 7000000UL,? 7300000UL,? 40, "40"},
? {10100000UL, 10150000UL,? 30, "30"},
? {14000000UL, 14350000UL,? 20, "20"},
? {18068000UL, 18168000UL,? 17, "17"},
? {21000000UL, 21450000UL,? 15, "15"},
? {24890000UL, 24990000UL,? 12, "12"},
//? {26965000UL, 27405000UL,? 11, "CB"},//Citizen's Band
? {28000000UL, 29700000UL,? 10, "10"},
};


ubitxv6.ino

//#include <Wire.h>
#include "encoder.h"
#include "menu.h"
#include "menu_main.h"
//#include "morse.h"
#include "pin_definitions.h"
#include "push_button.h"
#include "nano_gui.h"
//#include "settings.h"
#include "setup.h"
#include "si5351.h"
#include "touch.h"
#include "tuner.h"
#include "ui_touch.h"


results 1.8.13:

Sketch uses 30694 bytes (99%) of program storage space. Maximum is 30720 bytes.
Global variables use 819 bytes (39%) of dynamic memory, leaving 1229 bytes for local variables. Maximum is 2048 bytes.




On Sunday, June 21, 2020, 2:04:06 AM EDT, Reed N <greenkid336600+groupsio@...> wrote:


Well that's annoying. Since obviously the code didn't change between Arduino versions, that means there's 400 bytes of extra Arduino bloat being built into the new version! :/


Reed

Join [email protected] to automatically receive all group messages.