We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent afb64e0 commit 072c277Copy full SHA for 072c277
ports/raspberrypi/boards/mtm_computer/board.c
@@ -31,4 +31,10 @@ static mp_obj_t board_dac_factory(void) {
31
}
32
MP_DEFINE_CONST_FUN_OBJ_0(board_dac_obj, board_dac_factory);
33
34
+void board_deinit(void) {
35
+ if (board_dac_singleton != MP_OBJ_NULL) {
36
+ common_hal_mcp4822_mcp4822_deinit(MP_OBJ_TO_PTR(board_dac_singleton));
37
+ board_dac_singleton = MP_OBJ_NULL;
38
+ }
39
+}
40
// Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
0 commit comments