Skip to content

Commit 8be1681

Browse files
committed
remove this, it got moved to common code
1 parent 551b981 commit 8be1681

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

ports/raspberrypi/boards/adafruit_feather_rp2350/board.c

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,10 @@
77
#include "py/obj.h"
88
#include "supervisor/board.h"
99

10-
#include "shared-module/displayio/__init__.h"
1110
#include "common-hal/picodvi/__init__.h"
1211

1312
// Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
1413

15-
16-
extern void mp_module_board_attr(mp_obj_t self_in, qstr attr, mp_obj_t *dest);
17-
18-
void mp_module_board_attr(mp_obj_t self_in, qstr attr, mp_obj_t *dest) {
19-
if (attr == MP_QSTR_DISPLAY && dest[0] == MP_OBJ_NULL) {
20-
mp_obj_base_t *first_display = &displays[0].display_base;
21-
if (first_display->type != &mp_type_NoneType && first_display->type != NULL) {
22-
dest[0] = MP_OBJ_FROM_PTR(first_display);
23-
}
24-
}
25-
}
26-
27-
MP_REGISTER_MODULE_DELEGATION(board_module, mp_module_board_attr);
28-
2914
void board_init(void) {
3015
picodvi_autoconstruct();
3116
}

ports/raspberrypi/boards/adafruit_feather_rp2350/mpconfigboard.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,3 @@
2929
#define DEFAULT_DVI_BUS_GREEN_DP (&pin_GPIO16)
3030
#define DEFAULT_DVI_BUS_BLUE_DN (&pin_GPIO13)
3131
#define DEFAULT_DVI_BUS_BLUE_DP (&pin_GPIO12)
32-
33-
// delegate board.DISPLAY attribute
34-
#define MICROPY_MODULE_ATTR_DELEGATION (1)

0 commit comments

Comments
 (0)