Skip to content

Commit 015b7db

Browse files
committed
window management
1 parent 595f627 commit 015b7db

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/displays/DisplayNeoPixel.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ namespace udd {
4242
addGhostPixel(p);
4343
}
4444
}
45+
void DisplayNeoPixel::setPixel(Pixel pixel) {
46+
this->vImage.drawPoint(pixel.point.x, pixel.point.y, pixel.color, 1);
47+
}
4548

4649
void DisplayNeoPixel::clearScreen(Color color) {
4750

src/displays/DisplayNeoPixel.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,11 @@ namespace udd {
3535
void showImage(Image image, Rotation rotation, ScreenMirror mirror);
3636
void showImage(Image image, Rotation rotation);
3737
void showImage(Image image);
38+
void setPixel(Pixel pixel);
3839

3940
private:
41+
Image vImage;
42+
4043
std::vector<Point> ghostPixels={};
4144

4245
};

0 commit comments

Comments
 (0)