Guide for editing firmware?

Is there some kind of guide for editing firmware? All I see are guides on flashing the firmware, not editing/configuring. I opened a few to look at the code, and most of them I can’t tell where you would edit the modes at, or where the mode groups are defined.

For instance, the Biscotti firmware I see.

#define NUM_MODEGROUPS 12 // don’t count muggle mode
PROGMEM const uint8_t modegroups[] = {
1, 2, 3, 5, 7, POLICE_STROBE, BIKING_STROBE, BATTCHECK,
1, 2, 3, 5, 7, 0, 0, 0,
7, 5, 3, 2, 1, 0, 0, 0,
2, 4, 7, POLICE_STROBE, BIKING_STROBE, BATTCHECK, SOS, 0,
2, 4, 7, 0, 0, 0, 0, 0,
7, 4, 2, 0, 0, 0, 0, 0,
1, 2, 3, 6, POLICE_STROBE, BIKING_STROBE, BATTCHECK, SOS,
1, 2, 3, 6, 0, 0, 0, 0,
6, 3, 2, 1, 0, 0, 0, 0,
2, 3, 5, 7, 0, 0, 0, 0,
7, 4, POLICE_STROBE,0,0, 0, 0, 0,
7, 0,

what I don’t see is where these values are defined. I thought the modes were values going up to 255?

Look at Line#74
#define RAMP_FET 1,7,32,63,107,127,255

1 Thank

#define RAMP_FET 1,7,32,63,107,127,255 // that’s brightness levels.
#define NUM_MODEGROUPS 12 // groups. If you need only 3 groups write 3 instead of 12 and delete unwanted 9 groups below.
Groups have 8 slots.
If you want brightness level like 1,32,127. You have to edit some group like this: 1, 3, 6, 0, 0, 0, 0, 0,
I think it work like this but not sure didn’t test it

2 Thanks

Wow, I’m blind, I was staring at that section for quite some time and didn’t see that. Thanks INeedMoreLumens and Quadrupel.

If I use a 7135 driver like a QLITE , do I need to use #define RAMP_7135 instead of #define RAMP_FET?

Also why is line# 66 like this? What is with all the 255 in that line?

//#define RAMP_7135 3,3,4,5,6,8,10,12,15,19,23,28,33,40,47,55,63,73,84,95,108,122,137,153,171,190,210,232,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0

And for #define RAMP_SIZE, can I make that as as big as I want? I’m assuming the brightness levels you can use for each group can only be chosen from #define RAMP_FET.

So if I have #define RAMP_SIZE set to 15, I would have 15 brightness levels to chose from for when I setup the groups?