Array gibt komische Werte aus...?

omatoasty:
int visit [49] [49];

Zweidimensionales Array, 49*49= 2401 Werte, bei 2 Bytes je Wert = 4802 Bytes RAM-Speicher Bedarf

omatoasty:
int wall [49] [49] [3];

Dreidimensionales Array 49493 = 7203 Werte, bei 2 Bytes je Wert = 14406 Bytes RAM-Speicher Bedarf

Summe RAM-Speicher = 19208 Bytes = ca. 19 KB

Nur ein Arduino DUE mit 32-Bit Controller hat mit 96 KBytes SRAM ausreichend RAM.

Verwendest Du einen Arduino Due?