| 44 | } |
| 45 | |
| 46 | void set(uint16_t x, uint16_t y, CRGB color) { |
| 47 | if (x < mXyMap.getWidth() && y < mXyMap.getHeight()) { |
| 48 | uint16_t index = mXyMap(x, y); |
| 49 | if (index < mXyMap.getTotal()) { |
| 50 | mLeds[index] = color; |
| 51 | } |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | fl::string fxName() const override { return "TestFx2D"; } |
| 56 |