Skip to content

Commit 8b531f3

Browse files
authored
Merge pull request #1263 from tannewt/trellis_m4_revD
Support rev D for the Trellis M4 Express
2 parents 852cbca + b5e2613 commit 8b531f3

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

ports/atmel-samd/boards/trellis_m4_express/mpconfigboard.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
#define CIRCUITPY_MCU_FAMILY samd51
55

6-
// This is for a purple prototype which is Rev C
6+
// This is for Rev D
77
#define MICROPY_HW_APA102_MOSI (&pin_PA01)
88
#define MICROPY_HW_APA102_SCK (&pin_PA00)
99

@@ -28,7 +28,7 @@
2828
#include "external_flash/devices.h"
2929

3030
#define EXTERNAL_FLASH_DEVICE_COUNT 1
31-
#define EXTERNAL_FLASH_DEVICES W25Q128JV_SQ
31+
#define EXTERNAL_FLASH_DEVICES GD25Q64C
3232

3333
#include "external_flash/external_flash.h"
3434

ports/atmel-samd/boards/trellis_m4_express/pins.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ STATIC const mp_rom_map_elem_t board_global_dict_table[] = {
1515
{ MP_OBJ_NEW_QSTR(MP_QSTR_SDA), MP_ROM_PTR(&pin_PB08) },
1616
{ MP_OBJ_NEW_QSTR(MP_QSTR_SCL), MP_ROM_PTR(&pin_PB09) },
1717

18+
{ MP_OBJ_NEW_QSTR(MP_QSTR_ACCELEROMETER_SDA), MP_ROM_PTR(&pin_PA12) },
19+
{ MP_OBJ_NEW_QSTR(MP_QSTR_ACCELEROMETER_SCL), MP_ROM_PTR(&pin_PA13) },
20+
1821
// Key Grid columns
1922
{ MP_OBJ_NEW_QSTR(MP_QSTR_COL0), MP_ROM_PTR(&pin_PA14) },
2023
{ MP_OBJ_NEW_QSTR(MP_QSTR_COL1), MP_ROM_PTR(&pin_PA15) },

0 commit comments

Comments
 (0)