Skip to content

Commit

Permalink
fix mpd example
Browse files Browse the repository at this point in the history
  • Loading branch information
vroland committed Sep 14, 2023
1 parent b3a8ffa commit 0a136fa
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
6 changes: 3 additions & 3 deletions examples/mpd_status/dependencies.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ dependencies:
component_hash: null
source:
type: idf
version: 5.0.0
manifest_hash: 9d4dcd3c8f27cde5e52f2fba13d202ee2deaa3855572295835aeeb508b8b2c24
target: esp32
version: 5.1.1
manifest_hash: 21c5347826a179bf9c93a91c1012b3240455cc051b9fd4ac05364a0a2dedac7f
target: esp32s3
version: 1.0.0
6 changes: 4 additions & 2 deletions examples/mpd_status/main/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ const int album_cover_y = 100;
const int queue_x_end = 1500;
const int queue_y_start = 100;

#define MPD_IP "192.168.69.90"

EpdiyHighlevelState hl;

static bool got_ip = false;
Expand Down Expand Up @@ -110,7 +112,7 @@ void handle_error(struct mpd_connection** c) {
}

void epd_task() {
epd_init(&DEMO_BOARD, &ED097TC2, EPD_LUT_1K);
epd_init(&DEMO_BOARD, &ED097TC2, EPD_OPTIONS_DEFAULT);
// Set VCOM for boards that allow to set this in software (in mV).
// This will print an error if unsupported. In this case,
// set VCOM using the hardware potentiometer and delete this line.
Expand Down Expand Up @@ -179,7 +181,7 @@ void epd_task() {
while (true) {
// connect / reconnect
if (mpd_conn == NULL) {
mpd_conn = mpd_connection_new("192.168.42.50", 6600, 3000);
mpd_conn = mpd_connection_new(MPD_IP, 6600, 3000);
handle_error(&mpd_conn);
int i;
printf("mpd server version: ");
Expand Down
6 changes: 3 additions & 3 deletions examples/mpd_status/sdkconfig.defaults.esp32
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,11 @@ CONFIG_ESPTOOLPY_MONITOR_BAUD=115200
# Partition Table
#
# CONFIG_PARTITION_TABLE_SINGLE_APP is not set
CONFIG_PARTITION_TABLE_SINGLE_APP_LARGE=y
# CONFIG_PARTITION_TABLE_SINGLE_APP_LARGE is not set
# CONFIG_PARTITION_TABLE_TWO_OTA is not set
# CONFIG_PARTITION_TABLE_CUSTOM is not set
CONFIG_PARTITION_TABLE_CUSTOM=y
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv"
CONFIG_PARTITION_TABLE_FILENAME="partitions_singleapp_large.csv"
CONFIG_PARTITION_TABLE_FILENAME="partitions.csv"
CONFIG_PARTITION_TABLE_OFFSET=0x8000
CONFIG_PARTITION_TABLE_MD5=y
# end of Partition Table
Expand Down
6 changes: 3 additions & 3 deletions examples/mpd_status/sdkconfig.defaults.esp32s3
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,11 @@ CONFIG_ESPTOOLPY_MONITOR_BAUD=115200
# Partition Table
#
# CONFIG_PARTITION_TABLE_SINGLE_APP is not set
CONFIG_PARTITION_TABLE_SINGLE_APP_LARGE=y
# CONFIG_PARTITION_TABLE_SINGLE_APP_LARGE is not set
# CONFIG_PARTITION_TABLE_TWO_OTA is not set
# CONFIG_PARTITION_TABLE_CUSTOM is not set
CONFIG_PARTITION_TABLE_CUSTOM=y
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv"
CONFIG_PARTITION_TABLE_FILENAME="partitions_singleapp_large.csv"
CONFIG_PARTITION_TABLE_FILENAME="partitions.csv"
CONFIG_PARTITION_TABLE_OFFSET=0x8000
CONFIG_PARTITION_TABLE_MD5=y
# end of Partition Table
Expand Down

0 comments on commit 0a136fa

Please sign in to comment.