Skip to content

Commit

Permalink
doom: update to match new lilka lib API
Browse files Browse the repository at this point in the history
  • Loading branch information
and3rson committed Mar 8, 2024
1 parent 3f94fde commit 39a5bd5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion firmware/doom/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ framework = arduino
lib_extra_dirs = ./lib
; Define LILKA_BREADBOARD to lower SPI speed to 40 MHz (instead of normal 80)
; TODO: Remove this when we have PCBs!
build_flags = -D LILKA_BREADBOARD -D LILKA_NO_LUA -D LILKA_NO_MJS -D LILKA_NO_SPLASH
build_flags = -D LILKA_BREADBOARD -D LILKA_NO_SPLASH
extra_scripts = move_firmware.py
8 changes: 6 additions & 2 deletions firmware/doom/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ void setup() {
// Find the wad file
File root = SD.open("/");
File file;
while (file = root.openNextFile()) {
while ((file = root.openNextFile())) {
if (file.isDirectory()) {
file.close();
continue;
Expand All @@ -89,7 +89,11 @@ void setup() {
}
root.close();
if (!found) {
lilka::ui_alert("Doom", "Не знайдено .WAD-файлу на картці пам'яті");
lilka::Alert alert("Doom", "Не знайдено .WAD-файлу на картці пам'яті");
alert.draw(&lilka::display);
while (!alert.isDone()) {
alert.update();
}
esp_restart();
}
char *argv[3] = {arg, arg2, arg3};
Expand Down

0 comments on commit 39a5bd5

Please sign in to comment.