We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fea7fe4 commit 531217aCopy full SHA for 531217a
1 file changed
extmod/modframebuf.c
@@ -83,7 +83,7 @@ STATIC mp_obj_t framebuf1_pixel(size_t n_args, const mp_obj_t *args) {
83
int index = (y / 8) * self->stride + x;
84
if (n_args == 3) {
85
// get
86
- return MP_OBJ_NEW_SMALL_INT(self->buf[index] >> (y & 7));
+ return MP_OBJ_NEW_SMALL_INT((self->buf[index] >> (y & 7)) & 1);
87
} else {
88
// set
89
if (mp_obj_get_int(args[3])) {
0 commit comments