File tree Expand file tree Collapse file tree 4 files changed +5
-30
lines changed
ports/nrf/boards/bluemicro833 Expand file tree Collapse file tree 4 files changed +5
-30
lines changed Original file line number Diff line number Diff line change 26
26
27
27
#include "supervisor/board.h"
28
28
29
- #include "supervisor/board.h"
30
- #include "mpconfigboard.h"
31
- #include "py/obj.h"
32
- #include "peripherals/nrf/pins.h"
33
- #include "supervisor/shared/board.h"
34
-
35
- #include "nrf_gpio.h"
36
-
37
29
void board_init (void ) {
38
- // Turn on power to sensors and neopixels.
39
- nrf_gpio_cfg (POWER_SWITCH_PIN -> number ,
40
- NRF_GPIO_PIN_DIR_OUTPUT ,
41
- NRF_GPIO_PIN_INPUT_DISCONNECT ,
42
- NRF_GPIO_PIN_NOPULL ,
43
- NRF_GPIO_PIN_S0S1 ,
44
- NRF_GPIO_PIN_NOSENSE );
45
- nrf_gpio_pin_write (POWER_SWITCH_PIN -> number , true);
46
- }
47
-
48
- void board_deinit (void ) {
49
- // Turn off power to sensors and neopixels.
50
- nrf_gpio_cfg (POWER_SWITCH_PIN -> number ,
51
- NRF_GPIO_PIN_DIR_OUTPUT ,
52
- NRF_GPIO_PIN_INPUT_DISCONNECT ,
53
- NRF_GPIO_PIN_NOPULL ,
54
- NRF_GPIO_PIN_S0S1 ,
55
- NRF_GPIO_PIN_NOSENSE );
56
- nrf_gpio_pin_write (POWER_SWITCH_PIN -> number , false);
57
30
}
58
31
59
32
bool board_requests_safe_mode (void ) {
60
33
return false;
61
34
}
62
35
63
36
void reset_board (void ) {
64
- board_reset_user_neopixels ( & pin_P0_7 , 1 );
37
+
65
38
}
Original file line number Diff line number Diff line change 30
30
#define MICROPY_HW_BOARD_NAME "BlueMicro833"
31
31
#define MICROPY_HW_MCU_NAME "nRF52833"
32
32
33
- #define MICROPY_HW_NEOPIXEL (&pin_P0_7 )
33
+ #define MICROPY_HW_NEOPIXEL (&pin_P0_07 )
34
34
#define MICROPY_HW_LED_STATUS (&pin_P0_25)
35
35
36
36
#define CIRCUITPY_INTERNAL_NVM_SIZE 0
Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ INTERNAL_FLASH_FILESYSTEM = 1
10
10
CIRCUITPY_AESIO = 0
11
11
CIRCUITPY_ALARM = 0
12
12
CIRCUITPY_AUDIOMP3 = 0
13
+ CIRCUITPY_AUDIOBUSIO = 0
14
+ CIRCUITPY_AUDIOMIXER = 0
13
15
CIRCUITPY_BINASCII = 0
14
16
CIRCUITPY_BITBANGIO = 0
15
17
CIRCUITPY_BITMAPTOOLS = 0
Original file line number Diff line number Diff line change @@ -53,4 +53,4 @@ STATIC const mp_rom_map_elem_t board_module_globals_table[] = {
53
53
{ MP_ROM_QSTR (MP_QSTR_BUTTON4 ), MP_ROM_PTR (& pin_P0_25 ) },
54
54
};
55
55
56
- MP_DEFINE_CONST_DICT (board_module_globals , board_module_globals_table );
56
+ MP_DEFINE_CONST_DICT (board_module_globals , board_module_globals_table );
You can’t perform that action at this time.
0 commit comments