enable paralleldisplay
on esp32
and esp32s3
This commit is contained in:
parent
8feb3bad29
commit
3d2cfa162a
@ -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;
|
||||
|
@ -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++;
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user