Skip to content

Commit

Permalink
Add Grouping and Spacing projections (WIP)
Browse files Browse the repository at this point in the history
  • Loading branch information
ewoudwijma committed Jun 24, 2024
1 parent 05d6d95 commit 8da613e
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/App/LedLeds.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ enum ProjectionsE
p_Random,
p_Reverse,
p_Mirror,
p_Grouping,
p_Spacing,
p_Kaleidoscope,
p_Pinwheel,
p_count // keep as last entry
Expand Down
2 changes: 2 additions & 0 deletions src/App/LedModEffects.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ class LedModEffects:public SysModule {
fixture.projections.push_back(new RandomProjection);
fixture.projections.push_back(new ReverseProjection);
fixture.projections.push_back(new MirrorProjection);
fixture.projections.push_back(new GroupingProjection);
fixture.projections.push_back(new SpacingProjection);
fixture.projections.push_back(new KaleidoscopeProjection);
fixture.projections.push_back(new PinwheelProjection);
};
Expand Down
18 changes: 18 additions & 0 deletions src/App/LedProjections.h
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,24 @@ class MirrorProjection: public Projection {
}
}; //MirrorProjection

class GroupingProjection: public Projection {
const char * name() {return "Grouping WIP";}
//uint8_t dim() {return _1D;} // every projection should work for all D
const char * tags() {return "💡";}

void controls(Leds &leds, JsonObject parentVar) {
}
}; //GroupingProjection

class SpacingProjection: public Projection {
const char * name() {return "Spacing WIP";}
//uint8_t dim() {return _1D;} // every projection should work for all D
const char * tags() {return "💡";}

void controls(Leds &leds, JsonObject parentVar) {
}
}; //SpacingProjection

class KaleidoscopeProjection: public Projection {
const char * name() {return "Kaleidoscope WIP";}
//uint8_t dim() {return _1D;} // every projection should work for all D
Expand Down

0 comments on commit 8da613e

Please sign in to comment.