Skip to content

Commit

Permalink
Fix closing of png file. Add cubo image and template
Browse files Browse the repository at this point in the history
  • Loading branch information
squix78 committed Dec 10, 2020
1 parent a6abb61 commit 7449340
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ The ESP32-Cubo is a device based on the Espressif ESP32 and comes with the follo
- DS3231 Real Time Clock Chip for keeping time, powered by coin cell battery
- Reset Button

![Visual Studio Code Footer](/images/Footer.png)
(/images/Cubo_Vorlage.pdf)

## Prerequisites
- esp32-cubo hardware
- usb cable to connect your computer to the device.
Expand Down
Binary file added images/Cubo_Vorlage.pdf
Binary file not shown.
Binary file added images/cubo-hardware.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 3 additions & 6 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,13 +156,11 @@ void drawPng(String filename, uint8_t xk, uint8_t yk) {
}
}
log_d("Freeing resources");
upng_free(upng);
//leds.show();
//leds.wait();
} else {
log_d("Wrong bit depth");
}
}
upng_free(upng);
}

void initIMU() {
Expand Down Expand Up @@ -224,19 +222,18 @@ void drawScreen() {
case 2:
screenGfx.setRotation(1);
drawPng("/Bonjour_02.png", 0, 0);

break;
case 3:
screenGfx.setRotation(2);
drawPng("/Date.png", 0, 0);
drawPng("/willkommen_hack.png", 0, 0);
break;
case 4:
screenGfx.setRotation(1);
drawPng("/Heart.png", 0, 0);
break;
case 5:
screenGfx.setRotation(1);
drawPng("/kippen.png", 0, 0);
drawPng("/willkommen_hack.png", 0, 0);
break;
default:
screenGfx.setRotation(1);
Expand Down

0 comments on commit 7449340

Please sign in to comment.