Skip to content

Commit ccde64f

Browse files
committed
revert back as close to ItsyBitsy M0 as possible to get some help
1 parent 3a4c000 commit ccde64f

File tree

4 files changed

+34
-190
lines changed

4 files changed

+34
-190
lines changed

ports/atmel-samd/boards/bradanlanestudio_coin_m0/flash_config.c_txt

Lines changed: 0 additions & 143 deletions
This file was deleted.

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

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -17,44 +17,8 @@
1717
#define SPI_FLASH_CS_PIN &pin_PA27
1818

1919
// USB is always used internally so skip the pin objects for it.
20-
21-
// Not connected
22-
#define IGNORE_PIN_PA13 1
23-
#define IGNORE_PIN_PA28 1
24-
25-
26-
#define IGNORE_PIN_PA00 1
27-
#define IGNORE_PIN_PA01 1
28-
// PIN_PA02 = A0
29-
#define IGNORE_PIN_PA03 1
30-
#define IGNORE_PIN_PA04 1
31-
#define IGNORE_PIN_PA05 1
32-
#define IGNORE_PIN_PA06 1
33-
#define IGNORE_PIN_PA07 1
34-
#define IGNORE_PIN_PA08 1
35-
#define IGNORE_PIN_PA09 1
36-
#define IGNORE_PIN_PA10 1
37-
#define IGNORE_PIN_PA11 1
38-
#define IGNORE_PIN_PA12 1
39-
#define IGNORE_PIN_PA13 1
40-
#define IGNORE_PIN_PA14 1
41-
#define IGNORE_PIN_PA15 1
42-
#define IGNORE_PIN_PA20 1
43-
#define IGNORE_PIN_PA21 1
44-
#define IGNORE_PIN_PA22 1
45-
#define IGNORE_PIN_PA23 1
4620
#define IGNORE_PIN_PA24 1 // USB_D+
4721
#define IGNORE_PIN_PA25 1 // USB_D-
48-
// PIN_PA27 = SPI_FLASH_CS
49-
#define IGNORE_PIN_PA28 1
22+
5023
#define IGNORE_PIN_PA30 1 // SWCLK
5124
#define IGNORE_PIN_PA31 1 // SWDIO
52-
53-
// PIN_PB02 = A5
54-
// PIN_PB03 = SPI_FLASH_MISO
55-
// PIN_PB08 = A1
56-
// PIN_PB09 = A2
57-
#define IGNORE_PIN_PB10 1 // MOSI
58-
#define IGNORE_PIN_PB11 1 // SCK
59-
// PIN_PB22 = SPI_FLASH_MOSI
60-
// PIN_PB23 = SPI_FLASH_SCK

ports/atmel-samd/boards/bradanlanestudio_coin_m0/mpconfigboard.mk

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,41 @@ USB_MANUFACTURER = "Bradán Lane STUDIO"
1313
CHIP_VARIANT = SAMD21G18A
1414
CHIP_FAMILY = samd21
1515

16-
CIRCUITPY_BUILD_EXTENSIONS = bin,uf2
17-
18-
#INTERNAL_FLASH_FILESYSTEM = 1
19-
#LONGINT_IMPL = NONE
20-
#CIRCUITPY_FULL_BUILD = 0
16+
#CIRCUITPY_BUILD_EXTENSIONS = bin,uf2
2117

2218
SPI_FLASH_FILESYSTEM = 1
2319
EXTERNAL_FLASH_DEVICES = "W25Q32JVxQ"
2420
LONGINT_IMPL = MPZ
2521

2622
CIRCUITPY_PULSEIO = 0
27-
CIRCUITPY_AUDIOIO = 0
28-
CIRCUITPY_AUDIOBUSIO = 0
2923

24+
#CIRCUITPY_FULL_BUILD = 0
25+
26+
# A number of modules are removed
27+
# Many I/O functions are not available or not used in a keyboard
28+
#CIRCUITPY_ANALOGIO = 0 # Needed for potentiometer input (mouse)
29+
#CIRCUITPY_AUDIOCORE = 0
30+
#CIRCUITPY_AUDIOIO = 0
31+
#CIRCUITPY_AUDIOBUSIO = 0
32+
# Needed for I2C, SPI and UART - removed that for keyboards...
33+
#CIRCUITPY_BUSIO = 1
34+
#CIRCUITPY_PULSEIO = 1
35+
# only needed for speaker or LED PWM functions. Takes 2314 bytes.
36+
#CIRCUITPY_PWMIO = 1
37+
#CIRCUITPY_RTC = 0
38+
#CIRCUITPY_MATH = 0
39+
#CIRCUITPY_RANDOM = 0
40+
#CIRCUITPY_ONEWIREIO = 0
41+
# Needed for RGB LEDs
42+
#CIRCUITPY_NEOPIXEL_WRITE = 1
43+
# Needed for RGB LEDs
44+
#CIRCUITPY_RAINBOWIO = 1
45+
# These are used in a keyboard or computer input device.
46+
#CIRCUITPY_ROTARYIO = 0
47+
#CIRCUITPY_KEYPAD = 1
48+
#CIRCUITPY_USB_HID = 1
49+
#CIRCUITPY_USB_MIDI = 0
3050

3151
# Include these Python libraries in firmware.
32-
#FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_NeoPixel
3352
#FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_HID
53+
#FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_NeoPixel

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ static const mp_rom_map_elem_t board_module_globals_table[] = {
2222
// { MP_ROM_QSTR(MP_QSTR_D6), MP_ROM_PTR(&pin_PA20) },
2323
// { MP_ROM_QSTR(MP_QSTR_D7), MP_ROM_PTR(&pin_PA21) },
2424
// { MP_ROM_QSTR(MP_QSTR_D8), MP_ROM_PTR(&pin_PA06) },
25-
// { MP_ROM_QSTR(MP_QSTR_D9), MP_ROM_PTR(&pin_PA07) },
25+
{ MP_ROM_QSTR(MP_QSTR_D9), MP_ROM_PTR(&pin_PA07) },
26+
{ MP_ROM_QSTR(MP_QSTR_NEOPIXEL), MP_ROM_PTR(&pin_PA07) },
27+
2628
{ MP_ROM_QSTR(MP_QSTR_D10), MP_ROM_PTR(&pin_PA18) },
2729
{ MP_ROM_QSTR(MP_QSTR_D11), MP_ROM_PTR(&pin_PA16) },
2830
{ MP_ROM_QSTR(MP_QSTR_D12), MP_ROM_PTR(&pin_PA19) },
@@ -32,7 +34,8 @@ static const mp_rom_map_elem_t board_module_globals_table[] = {
3234
// { MP_ROM_QSTR(MP_QSTR_L), MP_ROM_PTR(&pin_PA17) }, // a.k.a D13
3335

3436
{ MP_ROM_QSTR(MP_QSTR_A0), MP_ROM_PTR(&pin_PA02) },
35-
{ MP_ROM_QSTR(MP_QSTR_BUZZER), MP_ROM_PTR(&pin_PA02) },
37+
{ MP_ROM_QSTR(MP_QSTR_SPEAKER), MP_ROM_PTR(&pin_PA02) },
38+
3639
{ MP_ROM_QSTR(MP_QSTR_A1), MP_ROM_PTR(&pin_PB08) },
3740
{ MP_ROM_QSTR(MP_QSTR_TOUCH2), MP_ROM_PTR(&pin_PB08) },
3841
{ MP_ROM_QSTR(MP_QSTR_A2), MP_ROM_PTR(&pin_PB09) },

0 commit comments

Comments
 (0)