Countless errors

I've been trying to fix my file for a few days now, each time only getting this error: C:\Users\user\Downloads\trolol_RAUDONAS\trolol_RAUDONAS.ino:286: error: unterminated #ifndef 286 | #ifndef IMAGE_DATA_H exit status 1 Compilation error: unterminated #ifndef Anyone who knows how to fix it, please personally message me.
9 Replies
Reeshav_Ghosh200
could you please share the code, there seems to be an error on line 286 with IMAGE_DATA_H are you using an ESP32 cam by any chance and dealing w/Images
Rookkass
RookkassOP2mo ago
I'm not, I'm using it differently It's a BLE spam code, for my friend.
Reeshav_Ghosh200
please share the code, there seems to be an error in the code resulting in compilation error
Rookkass
RookkassOP2mo ago
It's a pretty big one
Rookkass
RookkassOP2mo ago
I'm an idiot, so I used a lot of AI for this
Reeshav_Ghosh200
firstly, which board are you using, arduino uno, mega or ESP32 @Rookkass
Rookkass
RookkassOP2mo ago
I'm not using any board, it's just a code to be put into the M5StickCPlus2
Reeshav_Ghosh200
firstly, convert your boot image to an arduino array, using some website to RGB565 format then create a file called image_data.h in the same folder and fill it in like this
const unsigned int trololfirmware_width = 135; //image width
const unsigned int trololfirmware_height = 240; //image height
const unsigned short trololfirmware_data[] PROGMEM = {
// generated RGB565 pixel data
};
const unsigned int trololfirmware_width = 135; //image width
const unsigned int trololfirmware_height = 240; //image height
const unsigned short trololfirmware_data[] PROGMEM = {
// generated RGB565 pixel data
};
and this at the top of the provided code #include <image_data.h> try this once @Rookkass
Rookkass
RookkassOP2mo ago
Oke thanks

Did you find this page helpful?