Skip to content

Commit 6349e69

Browse files
committed
rename macro to MP_DEFINE_BYTES_OBJ_WITH_NULL
1 parent 8c10cd3 commit 6349e69

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

ports/espressif/boards/espressif_esp32s3_lcd_ev_v1.5/board.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include "shared-module/displayio/__init__.h"
1616
#include "boards/espressif_esp32s3_lcd_ev_v1.5/board.h"
1717

18-
#define MP_DEFINE_BYTES_OBJ(obj_name, bin) mp_obj_str_t obj_name = {{&mp_type_bytes}, 0, sizeof(bin) - 1, (const byte *)bin}
18+
#define MP_DEFINE_BYTES_OBJ_WITH_NULL(obj_name, bin) mp_obj_str_t obj_name = {{&mp_type_bytes}, 0, sizeof(bin) - 1, (const byte *)bin}
1919

2020
static const uint8_t display_init_sequence[] = {
2121
0xf0, 5, 0x55, 0xaa, 0x52, 0x08, 0x00,
@@ -66,14 +66,14 @@ static const uint8_t display_init_sequence[] = {
6666
0x29, 0x0,
6767
0, // trailing NUL for Python bytes() representation
6868
};
69-
MP_DEFINE_BYTES_OBJ(display_init_byte_obj, display_init_sequence);
69+
MP_DEFINE_BYTES_OBJ_WITH_NULL(display_init_byte_obj, display_init_sequence);
7070

7171
static const char i2c_bus_init_sequence[] = {
7272
2, 3, 0xf1, // set GPIO direction
7373
2, 2, 0, // disable all output inversion
7474
0, // trailing NUL for Python bytes() representation
7575
};
76-
MP_DEFINE_BYTES_OBJ(i2c_init_byte_obj, i2c_bus_init_sequence);
76+
MP_DEFINE_BYTES_OBJ_WITH_NULL(i2c_init_byte_obj, i2c_bus_init_sequence);
7777

7878
static const mcu_pin_obj_t *red_pins[] = {
7979
&pin_GPIO1, &pin_GPIO2, &pin_GPIO42, &pin_GPIO41, &pin_GPIO40
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
11
#
22
# Espressif IoT Development Framework Configuration
33
#
4+
#
5+
# Component config
6+
#
7+
#
8+
# LWIP
9+
#
10+
CONFIG_LWIP_LOCAL_HOSTNAME="espressif-esp32s3-lcd-ev-v1.5"
11+
# end of LWIP
12+
13+
# end of Component config
14+
15+
# end of Espressif IoT Development Framework Configuration

0 commit comments

Comments
 (0)