diff --git a/firmware-demo/src/letris_splash.h b/firmware-demo/src/letris_splash.h index a3ce2710..2213b44c 100644 --- a/firmware-demo/src/letris_splash.h +++ b/firmware-demo/src/letris_splash.h @@ -1,4 +1,4 @@ -// This file was generated automatically. Do not edit. +// This is a generated file, do not edit. // clang-format off #include const uint16_t letris_splash_width = 240; diff --git a/firmware-test/Makefile b/firmware-test/Makefile deleted file mode 100644 index c4f5e68e..00000000 --- a/firmware-test/Makefile +++ /dev/null @@ -1,22 +0,0 @@ -ENV ?= esp32c3 - -all: - pio -f -c vim run -e $(ENV) - -upload-usb: - pio -f -c vim run --target upload -e $(ENV) - -clean: - pio -f -c vim run --target clean -e $(ENV) - -program: - pio -f -c vim run --target program -e $(ENV) - -update: - pio -f -c vim update - -compile_commands: - pio run -t compiledb -e $(ENV) - -uploadfs: - pio run -t uploadfs diff --git a/firmware-test/platformio.ini b/firmware-test/platformio.ini deleted file mode 100644 index c4dc2247..00000000 --- a/firmware-test/platformio.ini +++ /dev/null @@ -1,14 +0,0 @@ -; PlatformIO Project Configuration File -; -; Build options: build flags, source filter -; Upload options: custom upload port, speed and extra flags -; Library options: dependencies, extra library storages -; Advanced options: extra scripting -; -; Please visit documentation for the other options and examples -; https://docs.platformio.org/page/projectconf.html - -[env:esp32c3] -platform = espressif32 -board = adafruit_qtpy_esp32c3 -framework = arduino diff --git a/firmware-test/src/main.cpp b/firmware-test/src/main.cpp deleted file mode 100644 index f8ddd29b..00000000 --- a/firmware-test/src/main.cpp +++ /dev/null @@ -1,66 +0,0 @@ -#include - -#define SD_SCK 0 -#define SD_MISO 8 -#define SD_MOSI 1 -#define SD_SS 20 - -#define DBG_PIN 5 - -#define INTERNAL_TRANSACTION_SPEED 40000000 // 40 MHz - -void debugMark() { - delay(5); - digitalWrite(DBG_PIN, HIGH); - delay(5); - digitalWrite(DBG_PIN, LOW); - delay(5); -} - -void setup() { - Serial.begin(115200); - SPI.begin(SD_SCK, SD_MISO, SD_MOSI); - pinMode(DBG_PIN, OUTPUT); - digitalWrite(5, LOW); - - delay(2000); - - // Init SD card - Serial.print("Initializing SD card... "); - if (!SD.begin(SD_SS)) { - Serial.println("FAILED!"); - return; - } - Serial.println("OK."); - - // Read file - File f = SD.open("/foo.txt"); - if (f) { - Serial.println("foo.txt: " + f.readString()); - f.close(); - } - - debugMark(); - - // Start internal transaction - // for (int i = 0; i < 256; i++) { - SPI.beginTransaction(SPISettings(INTERNAL_TRANSACTION_SPEED, MSBFIRST, SPI_MODE3)); - // SPI.write(i); - SPI.endTransaction(); - // } - - debugMark(); - - // SPI.beginTransaction(SPISettings(4000000, MSBFIRST, SPI_MODE3)); - // SPI.write(0); - // SPI.endTransaction(); - - // Read file again - f = SD.open("/foo.txt"); - if (f) { - Serial.println("foo.txt: " + f.readString()); - f.close(); - } -} - -void loop() {} diff --git a/lib/lilka/src/lilka/icons/file.h b/lib/lilka/src/lilka/icons/file.h index 2a515180..ab39df31 100644 --- a/lib/lilka/src/lilka/icons/file.h +++ b/lib/lilka/src/lilka/icons/file.h @@ -1,4 +1,4 @@ -// This file was generated automatically. Do not edit. +// This is a generated file, do not edit. // clang-format off #include const uint16_t file_width = 24; diff --git a/lib/lilka/src/lilka/icons/folder.h b/lib/lilka/src/lilka/icons/folder.h index 24eba07c..29b2cafb 100644 --- a/lib/lilka/src/lilka/icons/folder.h +++ b/lib/lilka/src/lilka/icons/folder.h @@ -1,4 +1,4 @@ -// This file was generated automatically. Do not edit. +// This is a generated file, do not edit. // clang-format off #include const uint16_t folder_width = 24; diff --git a/lib/lilka/src/lilka/icons/nes.h b/lib/lilka/src/lilka/icons/nes.h index 681488ef..d52de7d2 100644 --- a/lib/lilka/src/lilka/icons/nes.h +++ b/lib/lilka/src/lilka/icons/nes.h @@ -1,4 +1,4 @@ -// This file was generated automatically. Do not edit. +// This is a generated file, do not edit. // clang-format off #include const uint16_t nes_width = 24; diff --git a/lib/lilka/src/lilka/splash.h b/lib/lilka/src/lilka/splash.h index a23a5666..52218ecb 100644 --- a/lib/lilka/src/lilka/splash.h +++ b/lib/lilka/src/lilka/splash.h @@ -1,4 +1,4 @@ -// This file was generated automatically. Do not edit. +// This is a generated file, do not edit. // clang-format off #include const uint16_t splash_width = 240; diff --git a/tools/image2code/image2code.py b/tools/image2code/image2code.py index 939c550f..7c493d89 100755 --- a/tools/image2code/image2code.py +++ b/tools/image2code/image2code.py @@ -39,7 +39,7 @@ with open(out, "w") as f: print(f"Записуємо {len(pixels)} пікселів у {out}... ", end="") - print("// This file was generated automatically. Do not edit.", file=f) + print("// This is a generated file, do not edit.", file=f) print("// clang-format off", file=f) print(f"#include ", file=f) print(f"const uint16_t {var_name}_width = {img.width};", file=f)