old uncommited changes
authorNils <forssennils@gmail.com>
Mon, 12 Aug 2024 05:43:57 +0000 (07:43 +0200)
committerNils <forssennils@gmail.com>
Mon, 12 Aug 2024 05:43:57 +0000 (07:43 +0200)
e-paper-project/web_server.cpp

index cc442fb41a2d86487e93cb5410bf7eb869e32a48..5eeacb7fe5ec0f01ae5703df65279fabdfa263b6 100644 (file)
@@ -29,7 +29,8 @@ static void home_page()
 
 static void dir_page()
 {
-    uint8_t levels = 0;
+    // Only lists files and directories in root "/", no recursion into folders...
+
     std::unique_ptr<File> root = SD_card_fs::get_file("/");
     if (*root)
     {
@@ -101,6 +102,14 @@ static void handle_file_upload()
         SD_card_fs::close_file();
 
         send_HTML_page(HTML_data::upload_finished_str);
+
+        epd_spi_pinout pinout{
+            
+        }
+        EPD_SPI_interface epd_display{}
+        BMP my_bitmap{filename.c_str()};
+
+
     }
     else 
     {