Skip to content

Commit cf1d43c

Browse files
author
ladyada
committed
add wifi esp32 support
1 parent 87d70e4 commit cf1d43c

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

boards.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ adafruit_pyportal_m4.build.usb_product="Adafruit PyPortal M4"
533533
adafruit_pyportal_m4.build.usb_manufacturer="Adafruit LLC"
534534
adafruit_pyportal_m4.build.board=PYPORTAL_M4
535535
adafruit_pyportal_m4.build.core=arduino
536-
adafruit_pyportal_m4.build.extra_flags=-D__SAMD51J20A__ -DADAFRUIT_PYPORTAL -D__SAMD51__ {build.usb_flags} -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16
536+
adafruit_pyportal_m4.build.extra_flags=-D__SAMD51J20A__ -DADAFRUIT_PYPORTAL -DCRYSTALLESS -D__SAMD51__ {build.usb_flags} -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16
537537
adafruit_pyportal_m4.build.ldscript=linker_scripts/gcc/flash_with_bootloader.ld
538538
adafruit_pyportal_m4.build.openocdscript=openocd_scripts/arduino_zero.cfg
539539
adafruit_pyportal_m4.build.variant=pyportal_m4

variants/pyportal_m4/variant.h

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,13 @@ static const uint8_t DAC0 = PIN_DAC0;
124124
static const uint8_t ATN = PIN_ATN;
125125

126126
/* WiFi interfaces */
127-
#define SerialNina Serial1
128-
#define NINA_GPIO0 6
129-
#define NINA_RESETN 7
127+
#define SerialNina Serial1
128+
#define SPIWIFI SPI
129+
#define NINA_GPIO0 6
130+
#define NINA_RESETN 7
131+
#define SPIWIFI_SS 8
132+
#define SPIWIFI_ACK 5
133+
#define SPIWIFI_RESET 7
130134

131135
/*
132136
* Serial interfaces

0 commit comments

Comments
 (0)