enable paralleldisplay on esp32 and esp32s3

This commit is contained in:
MicroDev 2023-03-12 01:22:22 +05:30 committed by Scott Shawcroft
parent 8feb3bad29
commit 3d2cfa162a
No known key found for this signature in database
GPG Key ID: 0DFD512649C052DA
3 changed files with 3 additions and 4 deletions

View File

@ -34,4 +34,4 @@ typedef struct {
esp_now_peer_info_t peer_info;
} espnow_peer_obj_t;
const mp_obj_type_t espnow_peer_type;
extern const mp_obj_type_t espnow_peer_type;

View File

@ -88,7 +88,7 @@ static void send_cb(const uint8_t *mac, esp_now_send_status_t status) {
// Callback triggered when an ESP-NOW packet is received.
// Write the peer MAC address and the message into the recv_buffer as an ESPNow packet.
// If the buffer is full, drop the message and increment the dropped count.
static void recv_cb(const uint8_t *mac, const uint8_t *msg, int msg_len) {
static void recv_cb(const esp_now_recv_info_t *esp_now_info, const uint8_t *msg, int msg_len) {
espnow_obj_t *self = MP_STATE_PORT(espnow_singleton);
ringbuf_t *buf = self->recv_buffer;
@ -117,7 +117,7 @@ static void recv_cb(const uint8_t *mac, const uint8_t *msg, int msg_len) {
header.time_ms = mp_hal_ticks_ms();
ringbuf_put_n(buf, (uint8_t *)&header, sizeof(header));
ringbuf_put_n(buf, mac, ESP_NOW_ETH_ALEN);
ringbuf_put_n(buf, esp_now_info->src_addr, ESP_NOW_ETH_ALEN);
ringbuf_put_n(buf, msg, msg_len);
self->read_success++;

View File

@ -48,7 +48,6 @@ CIRCUITPY_WIFI ?= 1
ifeq ($(IDF_TARGET),esp32)
# Modules
CIRCUITPY_BLEIO = 0
CIRCUITPY_PARALLELDISPLAY = 0
CIRCUITPY_RGBMATRIX = 0
# Features
CIRCUITPY_USB = 0