Skip to content

Commit a58ccd2

Browse files
committed
Inky73: Allow non-hacky pen types.
1 parent 73a4b5d commit a58ccd2

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

drivers/inky73/inky73.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,6 @@ namespace pimoroni {
144144
}
145145

146146
void Inky73::update(PicoGraphics *graphics) {
147-
if(graphics->pen_type != PicoGraphics::PEN_INKY7) return; // Incompatible buffer
148-
149147
if(blocking) {
150148
busy_wait();
151149
}

micropython/modules/picographics/picographics.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ mp_obj_t ModPicoGraphics_make_new(const mp_obj_type_t *type, size_t n_args, size
381381
self->display = m_new_class(UC8159, width, height, (Rotation)rotate, spi_bus);
382382

383383
} else if (display == DISPLAY_INKY_FRAME_7) {
384-
pen_type = PEN_INKY7;
384+
//pen_type = PEN_INKY7;
385385
// TODO grab BUSY and RESET from ARG_extra_pins
386386
self->display = m_new_class(Inky73, width, height, (Rotation)rotate, spi_bus);
387387

0 commit comments

Comments
 (0)