Select to expand quote
decrepit said..And of course I'd like a WaveWands logo. (Can anybody do the Lady of the Lake's arm, catching Excalibur before it hits the water.)

This is not a nice picture to create a logo (sorry). Especially if it will be only 48x48 pixels. See example below.
The code can be easily added and generated at:
javl.github.io/image2cpp/Few steps to take:
1. Select the image
2. Image Settings:Canvas size = 48x48,Background color=white,Invert image colors = check,Scaling = stretch to fill canvas,Flip = horizontal.
3. Fiddle around with theBrightness / alpha threshold until thePreviewlooks OK
4.Code output format = Arduino code
5.Draw mode: = Horizontal - 1 bit per pixel
6. Then generate the code
It will look like:
// 'WaveWands_logo', 48x48px
const unsigned char WaveWands_logo [] PROGMEM = {
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0xff, 0xff,
0xff, 0xff, 0xff, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f,
0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xfe, 0x7f,
0xff, 0xff, 0xff, 0xff, 0xfe, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xfe, 0x7f, 0xff, 0xff, 0xff, 0xff,
0xfe, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xfc, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xfc, 0x7f, 0xff, 0xff,
0xff, 0xff, 0xfc, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xfc, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xfc, 0x7f,
0xff, 0xff, 0xff, 0xff, 0xfc, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff,
0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xe0, 0x3f, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xf8, 0x7f,
0xff, 0xff, 0xff, 0xff, 0xf8, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xf8, 0xfb, 0xff, 0xff, 0xff, 0xff,
0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf8, 0x7f, 0xff, 0xff,
0xff, 0xff, 0xf0, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xf0, 0x61, 0xff, 0xf7, 0xf0, 0x01, 0x00, 0x00,
0x00, 0xff, 0xe0, 0x00, 0x01, 0x00, 0x00, 0x1f, 0xe0, 0x00, 0xe0, 0x3e, 0x40, 0x01, 0xff, 0xf0,
0x0f, 0x81, 0x6b, 0xe0, 0xff, 0xff, 0xff, 0xb0, 0x7f, 0xff, 0xff, 0xff, 0xef, 0xf0, 0x01, 0xff
};
Now change the 1st line into (adding the size 304):
const unsigned char WaveWands_logo [304] PROGMEM = {
The logo code should be added to the file with the other bitmaps
github.com/RP6conrad/ESP-GPS-Logger/blob/master/Fonts/BitmapSurfbuddies.hThen it should be assigned to a number matching the config file in the file
github.com/RP6conrad/ESP-GPS-Logger/blob/master/E_paper.cpplogo_choice[0] are for the boards
logo_choice[1] are for sails
At the moment we have 9 positions mapped to these existing bitmaps. Not sure if we can use double digits for the logo choices, since I would not know the difference between 1 11 and 11 1
In the declaration it is set to integer:
extern int logo_choice[10]
github.com/RP6conrad/ESP-GPS-Logger/blob/master/SD_card.h
There is some code to deal with double digits:
if(Logo_choice > 99) {
logo_choice[0]=Logo_choice;
}
So this will allow to select a different board logo, but with default sail logo? Jan would know (I need to try ;) )
But as indicated, it's best to have simple logos that are well recognized, even in 48x48 mono. Do you have a better logo for WaveWands?
I have explored some code that could read the jpg or bitmap and convert it during the sdcard read to an epd bitmap. That would allow people to use any logo by storing the logo on their sdcard. That will make it easier to customize. However it is not very high on my agenda. Adding an additional logo is not much work, if we can select beyond 9...