Skip to content

Commit 53f4137

Browse files
updated pin defs
1 parent 4cad5be commit 53f4137

File tree

4 files changed

+5
-30
lines changed

4 files changed

+5
-30
lines changed

ports/nrf/boards/bluemicro833/board.c

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -26,40 +26,13 @@
2626

2727
#include "supervisor/board.h"
2828

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-
3729
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);
5730
}
5831

5932
bool board_requests_safe_mode(void) {
6033
return false;
6134
}
6235

6336
void reset_board(void) {
64-
board_reset_user_neopixels(&pin_P0_7, 1);
37+
6538
}

ports/nrf/boards/bluemicro833/mpconfigboard.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#define MICROPY_HW_BOARD_NAME "BlueMicro833"
3131
#define MICROPY_HW_MCU_NAME "nRF52833"
3232

33-
#define MICROPY_HW_NEOPIXEL (&pin_P0_7)
33+
#define MICROPY_HW_NEOPIXEL (&pin_P0_07)
3434
#define MICROPY_HW_LED_STATUS (&pin_P0_25)
3535

3636
#define CIRCUITPY_INTERNAL_NVM_SIZE 0

ports/nrf/boards/bluemicro833/mpconfigboard.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ INTERNAL_FLASH_FILESYSTEM = 1
1010
CIRCUITPY_AESIO = 0
1111
CIRCUITPY_ALARM = 0
1212
CIRCUITPY_AUDIOMP3 = 0
13+
CIRCUITPY_AUDIOBUSIO = 0
14+
CIRCUITPY_AUDIOMIXER = 0
1315
CIRCUITPY_BINASCII = 0
1416
CIRCUITPY_BITBANGIO = 0
1517
CIRCUITPY_BITMAPTOOLS = 0

ports/nrf/boards/bluemicro833/pins.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,4 @@ STATIC const mp_rom_map_elem_t board_module_globals_table[] = {
5353
{ MP_ROM_QSTR(MP_QSTR_BUTTON4), MP_ROM_PTR(&pin_P0_25) },
5454
};
5555

56-
MP_DEFINE_CONST_DICT(board_module_globals, board_module_globals_table);
56+
MP_DEFINE_CONST_DICT(board_module_globals, board_module_globals_table);

0 commit comments

Comments
 (0)