#problem

1 messages · Page 1 of 1 (latest)

quartz anvil
#

A teacher on my shool set project where we need to create animation
I make one
But it don't compile

#

And error

#

Arduino:1.8.19 (Windows Store 1.8.57.0) (Windows 10), Płytka:NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, 4MB (FS:3MB OTA:512KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200

c:/users/firma/documents/arduinodata/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/../lib/gcc/xtensa-lx
106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: C:UsersFirmaAppDataLocalTemparduino_build_696453/0-ssss-mmmm.ino.elf section .data will not fit in region dram0_0_seg

c:/users/firma/documents/arduinodata/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/../lib/gcc/xtensa-lx
106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: address 0x40167140 of C:UsersFirmaAppDataLocalTemparduino_build_696453/0-sssss-mmm.ino.elf section .bss is not within region dram0_0_seg

c:/users/firma/documents/arduinodata/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/../lib/gcc/xtensa-lx
106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: address 0x40167140 of C:UsersFirmaAppDataLocalTemparduino_build_696453/0-sssss-m.ino.elf section .bss is not within region dram0_0_seg

collect2.exe: error: ld returned 1 exit status

found more libarys in Adafruit_NeoPixel.h

Used: C:UsersFirmaDocumentsArduinolibrariesAdafruit_NeoPixel

Not used: C:UsersFirmaDocumentsArduinolibrariesAdafruit_NeoPixel-master

exit status 1

Compilation error for board NodeMCU 1.0 (ESP-12E Module).

Wrong libary found in C:UsersFirmaDocumentsArduinolibrariessuby: file header missing (.h) w C:UsersFirmaDocumentsArduinolibrariessuby

#

I have no idea why that's happen and i don't have Access to compiler to it myself

#

Please help

#

Its not a problem with brackets for sure

acoustic horizon
#

there may not be enough room for the 504 NeoPixels. If you reduce that number, does it compile?

quartz anvil
#

what do you mean?
couse working code is my techer code wich was displayed with all 504 ixels

#

this part of code is not changed

#

all i change is loop and add 2 arrays

acoustic horizon
#

Looking more closely, the [191][504][4] array is very large

#

191*504*4 is 385056

quartz anvil
#

so i shuld shring it?

#

how i can do it

#

load from file then?

acoustic horizon
#

what is the animation, is it computable, or is it an picture or text or something?

quartz anvil
#

its 191 frames each 504 pixels

acoustic horizon
#

right, but what is the image

quartz anvil
#

a mario level

#

with character going forword

acoustic horizon
#

does the character move its limbs, etc?

quartz anvil
#

yes

#

no

#

not moving limbs

#

character is only square 2x2

acoustic horizon
#

then you would be best off reading from a file, or breaking the image down into a background, and the moving character, and superimpose the character on the background. Perhaps there's an animation library you can use

#

that is make the animation be a program, not a bunch of static images

#

that is how it's done in a game

quartz anvil
#

yes

#

but i created a program

#

witch everyone can use

#

for animation

#

and jpg files is eases and most accessible

#

for now i try with file couse i have only 4 days left

acoustic horizon
#

I dont' think there is a filesystem available for you to use.

#

just breaking it out into another .c file is not going to help

quartz anvil
#

a txt file?

acoustic horizon
#

but where are you going to store the .txt file?

quartz anvil
#

a r, g, b and pixel index

#

lets say one file for frame

#

or file for all frames

acoustic horizon
#

one file for all is probably faster

#

good luck!

#

if you can compute the differences between frames, that is another thing to do. but the differences needs to be small, to fit

quartz anvil
#

Okey Thanks 😄