AdmiralCrunch
Well-known member
Hey
i have a ciruit with some multiplexers and LEDs and one switch connected directly in pin 13
everything works fine, so i worked on my code and set a class-variable
after uploading to teensy,the whole circuit doesn't work.. only the intern LED lights up when the switch attached to pin13 is pressed... I found out, that it has something to do with the size this variable needs..
when you make it smaller
everything works again .. oO
I'm completely confused .. can someone explain that behaviour?
i have a ciruit with some multiplexers and LEDs and one switch connected directly in pin 13
everything works fine, so i worked on my code and set a class-variable
Code:
String ctrlNote_values[127] = {"C0", "C0#", "D0", "D0#", "E0", "F0", "F0#", "G0", "G0#", "A0", "A0#", "B0", "C1", "C1#", "D1", "D1#", "E1", "F1", "F1#", "G1", "G1#", "A1", "A1#", "B1","C2", "C2#", "D2", "D2#", "E2", "F2", "F2#", "G2", "G2#", "A2", "A2#", "B2", "C3", "C3#", "D3", "D3#", "E3", "F3", "F3#", "G3", "G3#", "A3", "A3#", "B3", "C4", "C4#", "D4", "D4#", "E4", "F4", "F4#", "G4", "G4#", "A4", "A4#", "B4", "C5", "C5#", "D5", "D5#", "E5", "F5", "F5#", "G5", "G5#", "A5", "A5#", "B5", "C6", "C6#", "D6", "D6#", "E6", "F6", "F6#", "G6", "G6#", "A6", "A6#", "B6", "C7", "C7#", "D7", "D7#", "E7", "F7", "F7#", "G7", "G7#", "A7", "A7#", "B7", "C8", "C8#", "D8", "D8#", "E8", "F8", "F8#", "G8", "G8#", "A8", "A8#", "B8", "C9", "C9#", "D9", "D9#", "E9", "F9", "F9#", "G9", "G9#", "A9", "A9#", "B9", "C10", "C10#", "D10", "D10#", "E10", "F10", "F10#"};
Der Sketch verwendet 32.356 Bytes (12%) des Programmspeicherplatzes. Das Maximum sind 262.144 Bytes.
Globale Variablen verwenden 40.452 Bytes (61%) des dynamischen Speichers, 25.084 Bytes für lokale Variablen
after uploading to teensy,the whole circuit doesn't work.. only the intern LED lights up when the switch attached to pin13 is pressed... I found out, that it has something to do with the size this variable needs..
when you make it smaller
Code:
String ctrlNote_values[127] = {"C0", "C0#", "D0", "D0#", "E0", "F0", "F0#", "G0", "G0#", "A0", "A0#", "B0", "C1", "C1#", "D1", "D1#", "E1", "F1", "F1#", "G1", "G1#", "A1", "A1#", "B1","C2", "C2#", "D2", "D2#", "E2", "F2", "F2#", "G2", "G2#", "A2", "A2#", "B2", "C3", "C3#", "D3", "D3#", "E3", "F3", "F3#", "G3", "G3#", "A3", "A3#", "B3", "C4", "C4#", "D4", "D4#", "E4", "F4", "F4#", "G4", "G4#", "A4", "A4#", "B4", "C5", "C5#", "D5", "D5#", "E5", "F5", "F5#", "G5", "G5#", "A5", "A5#", "B5", "C6", "C6#", "D6", "D6#", "E6", "F6", "F6#", "G6", "G6#", "A6"};
Der Sketch verwendet 31.988 Bytes (12%) des Programmspeicherplatzes. Das Maximum sind 262.144 Bytes.
Globale Variablen verwenden 40.452 Bytes (61%) des dynamischen Speichers, 25.084 Bytes für lokale Variablen
everything works again .. oO
I'm completely confused .. can someone explain that behaviour?