Skip to content

Commit 2c067ed

Browse files
author
Matt Land
committed
used pins.c instead of README.rst
1 parent fbb57f9 commit 2c067ed

File tree

17 files changed

+35
-15
lines changed

17 files changed

+35
-15
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313

1414
#define BOARD_FLASH_SIZE (0x00040000 - 0x2000 - 0x010000)
1515

16-
#define DEFAULT_I2C_BUS_SCL (&pin_PB03)
17-
#define DEFAULT_I2C_BUS_SDA (&pin_PB02)
16+
#define DEFAULT_I2C_BUS_SCL (&pin_PA22)
17+
#define DEFAULT_I2C_BUS_SDA (&pin_PA23)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414

1515
#define BOARD_FLASH_SIZE (0x00040000 - 0x2000 - 0x010000)
1616

17-
#define DEFAULT_I2C_BUS_SCL (&pin_PB03)
18-
#define DEFAULT_I2C_BUS_SDA (&pin_PB02)
17+
#define DEFAULT_I2C_BUS_SCL (&pin_PA23)
18+
#define DEFAULT_I2C_BUS_SDA (&pin_PA22)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,5 @@
4949

5050
#define BOARD_HAS_CRYSTAL 1
5151

52-
#define DEFAULT_I2C_BUS_SCL (&pin_PB03)
53-
#define DEFAULT_I2C_BUS_SDA (&pin_PB02)
52+
#define DEFAULT_I2C_BUS_SCL (&pin_PA23)
53+
#define DEFAULT_I2C_BUS_SDA (&pin_PA22)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,5 @@
4848

4949
#include "external_flash/external_flash.h"
5050

51-
#define DEFAULT_I2C_BUS_SCL (&pin_PB03)
52-
#define DEFAULT_I2C_BUS_SDA (&pin_PB02)
51+
#define DEFAULT_I2C_BUS_SCL (&pin_PA23)
52+
#define DEFAULT_I2C_BUS_SDA (&pin_PA22)

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,6 @@
3131
#define EXTERNAL_FLASH_QSPI_DUAL
3232

3333
#include "external_flash/external_flash.h"
34+
35+
#define DEFAULT_I2C_BUS_SCL (&pin_PA13)
36+
#define DEFAULT_I2C_BUS_SDA (&pin_PA12)

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include "samd21_pins.h"
2+
#include "board_busses.h"
23

34
STATIC const mp_rom_map_elem_t board_global_dict_table[] = {
45
{ MP_ROM_QSTR(MP_QSTR_A0), MP_ROM_PTR(&pin_PA02) },
@@ -26,5 +27,6 @@ STATIC const mp_rom_map_elem_t board_global_dict_table[] = {
2627
{ MP_ROM_QSTR(MP_QSTR_D12), MP_ROM_PTR(&pin_PA22) },
2728
{ MP_ROM_QSTR(MP_QSTR_D13), MP_ROM_PTR(&pin_PA23) },
2829
{ MP_ROM_QSTR(MP_QSTR_NEOPIXEL), MP_ROM_PTR(&pin_PB23) },
30+
{ MP_ROM_QSTR(MP_QSTR_I2C), MP_ROM_PTR(&board_i2c_obj) },
2931
};
3032
MP_DEFINE_CONST_DICT(board_module_globals, board_global_dict_table);

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,6 @@
4646
GD25Q16C
4747

4848
#include "external_flash/external_flash.h"
49+
50+
#define DEFAULT_I2C_BUS_SCL (&pin_PA23)
51+
#define DEFAULT_I2C_BUS_SDA (&pin_PA22)

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include "samd21_pins.h"
2+
#include "board_busses.h"
23

34
STATIC const mp_rom_map_elem_t board_global_dict_table[] = {
45
{ MP_ROM_QSTR(MP_QSTR_D0), MP_ROM_PTR(&pin_PA11) },
@@ -38,5 +39,6 @@ STATIC const mp_rom_map_elem_t board_global_dict_table[] = {
3839

3940
{ MP_ROM_QSTR(MP_QSTR_APA102_MOSI), MP_ROM_PTR(&pin_PA01) },
4041
{ MP_ROM_QSTR(MP_QSTR_APA102_SCK), MP_ROM_PTR(&pin_PA00) },
42+
{ MP_ROM_QSTR(MP_QSTR_I2C), MP_ROM_PTR(&board_i2c_obj) },
4143
};
4244
MP_DEFINE_CONST_DICT(board_module_globals, board_global_dict_table);

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,6 @@
3131
#define EXTERNAL_FLASH_DEVICES GD25Q16C
3232

3333
#include "external_flash/external_flash.h"
34+
35+
#define DEFAULT_I2C_BUS_SCL (&pin_PA13)
36+
#define DEFAULT_I2C_BUS_SDA (&pin_PA12)

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include "samd51_pins.h"
2+
#include "board_busses.h"
23

34
// This mapping only includes functional names because pins broken
45
// out on connectors are labeled with their MCU name available from
@@ -35,5 +36,6 @@ STATIC const mp_rom_map_elem_t board_global_dict_table[] = {
3536

3637
{ MP_ROM_QSTR(MP_QSTR_APA102_MOSI), MP_ROM_PTR(&pin_PB03) },
3738
{ MP_ROM_QSTR(MP_QSTR_APA102_SCK), MP_ROM_PTR(&pin_PB02) },
39+
{ MP_ROM_QSTR(MP_QSTR_I2C), MP_ROM_PTR(&board_i2c_obj) },
3840
};
3941
MP_DEFINE_CONST_DICT(board_module_globals, board_global_dict_table);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy