File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -15,9 +15,9 @@ namespace pimoroni {
15
15
int PicoGraphics_PenInky7::create_pen (uint8_t r, uint8_t g, uint8_t b) {
16
16
return RGB (r, g, b).to_rgb888 () | 0x010101 ;
17
17
}
18
- int PicoGraphics_PenInky7::create_pen_hsv (float h, float s, float v) {
19
- return RGB::from_hsv (h, s, v).to_rgb888 ();
20
- }
18
+ int PicoGraphics_PenInky7::create_pen_hsv (float h, float s, float v) {
19
+ return RGB::from_hsv (h, s, v).to_rgb888 () | 0x010101 ;
20
+ }
21
21
void PicoGraphics_PenInky7::set_pixel (const Point &p) {
22
22
if ((color & 0x010101 ) == 0x010101 ) {
23
23
set_pixel_dither (p, RGB (color));
@@ -68,8 +68,7 @@ namespace pimoroni {
68
68
69
69
// set the pixel
70
70
// color = candidates[pattern[pattern_index]];
71
- color = candidate_cache[cache_key][dither16_pattern[pattern_index]];
72
- set_pixel (p);
71
+ driver.write_pixel (p, candidate_cache[cache_key][dither16_pattern[pattern_index]] & 0x07 );
73
72
}
74
73
void PicoGraphics_PenInky7::frame_convert (PenType type, conversion_callback_func callback) {
75
74
if (type == PEN_INKY7) {
You can’t perform that action at this time.
0 commit comments