Skip to content

Commit 3d2cfa1

Browse files
microdev1tannewt
authored andcommitted
enable paralleldisplay on esp32 and esp32s3
1 parent 8feb3ba commit 3d2cfa1

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

ports/espressif/bindings/espnow/Peer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ typedef struct {
3434
esp_now_peer_info_t peer_info;
3535
} espnow_peer_obj_t;
3636

37-
const mp_obj_type_t espnow_peer_type;
37+
extern const mp_obj_type_t espnow_peer_type;

ports/espressif/common-hal/espnow/ESPNow.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ static void send_cb(const uint8_t *mac, esp_now_send_status_t status) {
8888
// Callback triggered when an ESP-NOW packet is received.
8989
// Write the peer MAC address and the message into the recv_buffer as an ESPNow packet.
9090
// If the buffer is full, drop the message and increment the dropped count.
91-
static void recv_cb(const uint8_t *mac, const uint8_t *msg, int msg_len) {
91+
static void recv_cb(const esp_now_recv_info_t *esp_now_info, const uint8_t *msg, int msg_len) {
9292
espnow_obj_t *self = MP_STATE_PORT(espnow_singleton);
9393
ringbuf_t *buf = self->recv_buffer;
9494

@@ -117,7 +117,7 @@ static void recv_cb(const uint8_t *mac, const uint8_t *msg, int msg_len) {
117117
header.time_ms = mp_hal_ticks_ms();
118118

119119
ringbuf_put_n(buf, (uint8_t *)&header, sizeof(header));
120-
ringbuf_put_n(buf, mac, ESP_NOW_ETH_ALEN);
120+
ringbuf_put_n(buf, esp_now_info->src_addr, ESP_NOW_ETH_ALEN);
121121
ringbuf_put_n(buf, msg, msg_len);
122122

123123
self->read_success++;

ports/espressif/mpconfigport.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ CIRCUITPY_WIFI ?= 1
4848
ifeq ($(IDF_TARGET),esp32)
4949
# Modules
5050
CIRCUITPY_BLEIO = 0
51-
CIRCUITPY_PARALLELDISPLAY = 0
5251
CIRCUITPY_RGBMATRIX = 0
5352
# Features
5453
CIRCUITPY_USB = 0

0 commit comments

Comments
 (0)