File tree Expand file tree Collapse file tree 2 files changed +0
-18
lines changed
ports/raspberrypi/boards/adafruit_feather_rp2350 Expand file tree Collapse file tree 2 files changed +0
-18
lines changed Original file line number Diff line number Diff line change 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-
2914void board_init (void ) {
3015 picodvi_autoconstruct ();
3116}
Original file line number Diff line number Diff line change 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)
You can’t perform that action at this time.
0 commit comments