16 changed files with 137 additions and 0 deletions
			
			
		@ -0,0 +1,5 @@ | 
				
			|||
.pio | 
				
			|||
.vscode/.browse.c_cpp.db* | 
				
			|||
.vscode/c_cpp_properties.json | 
				
			|||
.vscode/launch.json | 
				
			|||
.vscode/ipch | 
				
			|||
@ -0,0 +1,10 @@ | 
				
			|||
{ | 
				
			|||
    // See http://go.microsoft.com/fwlink/?LinkId=827846 | 
				
			|||
    // for the documentation about the extensions.json format | 
				
			|||
    "recommendations": [ | 
				
			|||
        "platformio.platformio-ide" | 
				
			|||
    ], | 
				
			|||
    "unwantedRecommendations": [ | 
				
			|||
        "ms-vscode.cpptools-extension-pack" | 
				
			|||
    ] | 
				
			|||
} | 
				
			|||
@ -0,0 +1 @@ | 
				
			|||
Hello world! from text.txt | 
				
			|||
@ -0,0 +1,16 @@ | 
				
			|||
; 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:esp32dev] | 
				
			|||
platform = espressif32 | 
				
			|||
board = esp32dev | 
				
			|||
framework = arduino | 
				
			|||
monitor_speed = 115200 | 
				
			|||
board_build.filesystem = littlefs | 
				
			|||
@ -0,0 +1,24 @@ | 
				
			|||
#include <Arduino.h> | 
				
			|||
#include "LittleFS.h" | 
				
			|||
 | 
				
			|||
void setup() { | 
				
			|||
  Serial.begin(115200); | 
				
			|||
  if(!LittleFS.begin(true)){ | 
				
			|||
    Serial.println("Chyba při zavádění (mounting) LittleFS"); | 
				
			|||
    return; | 
				
			|||
  } | 
				
			|||
  File soubor = LittleFS.open("/text.txt"); | 
				
			|||
  if(!soubor) { | 
				
			|||
    Serial.println("Chyba pri otevirani souboru"); | 
				
			|||
    return; | 
				
			|||
  } | 
				
			|||
  Serial.println("obsah souboru:"); | 
				
			|||
  while (soubor.available()){ | 
				
			|||
    Serial.write(soubor.read()); | 
				
			|||
  } | 
				
			|||
  Serial.println(""); | 
				
			|||
  soubor.close();  | 
				
			|||
} | 
				
			|||
 | 
				
			|||
void loop() { | 
				
			|||
} | 
				
			|||
@ -0,0 +1,11 @@ | 
				
			|||
 | 
				
			|||
This directory is intended for PlatformIO Test Runner and project tests. | 
				
			|||
 | 
				
			|||
Unit Testing is a software testing method by which individual units of | 
				
			|||
source code, sets of one or more MCU program modules together with associated | 
				
			|||
control data, usage procedures, and operating procedures, are tested to | 
				
			|||
determine whether they are fit for use. Unit testing finds problems early | 
				
			|||
in the development cycle. | 
				
			|||
 | 
				
			|||
More information about PlatformIO Unit Testing: | 
				
			|||
- https://docs.platformio.org/en/latest/advanced/unit-testing/index.html | 
				
			|||
@ -0,0 +1,5 @@ | 
				
			|||
.pio | 
				
			|||
.vscode/.browse.c_cpp.db* | 
				
			|||
.vscode/c_cpp_properties.json | 
				
			|||
.vscode/launch.json | 
				
			|||
.vscode/ipch | 
				
			|||
@ -0,0 +1,10 @@ | 
				
			|||
{ | 
				
			|||
    // See http://go.microsoft.com/fwlink/?LinkId=827846 | 
				
			|||
    // for the documentation about the extensions.json format | 
				
			|||
    "recommendations": [ | 
				
			|||
        "platformio.platformio-ide" | 
				
			|||
    ], | 
				
			|||
    "unwantedRecommendations": [ | 
				
			|||
        "ms-vscode.cpptools-extension-pack" | 
				
			|||
    ] | 
				
			|||
} | 
				
			|||
@ -0,0 +1 @@ | 
				
			|||
Ahoj Svete! z text.txt | 
				
			|||
@ -0,0 +1,15 @@ | 
				
			|||
; 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:esp32dev] | 
				
			|||
platform = espressif32 | 
				
			|||
board = esp32dev | 
				
			|||
framework = arduino | 
				
			|||
monitor_speed = 115200 | 
				
			|||
@ -0,0 +1,24 @@ | 
				
			|||
#include <Arduino.h> | 
				
			|||
#include "SPIFFS.h" | 
				
			|||
 | 
				
			|||
void setup() { | 
				
			|||
  Serial.begin(115200); | 
				
			|||
  if(!SPIFFS.begin(true)){ | 
				
			|||
    Serial.println("Chyba při zavádění (mounting) SPIFFS"); | 
				
			|||
    return; | 
				
			|||
  } | 
				
			|||
  File soubor = SPIFFS.open("/text.txt"); | 
				
			|||
  if(!soubor) { | 
				
			|||
    Serial.println("Chyba pri otevirani souboru"); | 
				
			|||
    return; | 
				
			|||
  } | 
				
			|||
  Serial.println("obsah souboru:"); | 
				
			|||
  while (soubor.available()){ | 
				
			|||
    Serial.write(soubor.read()); | 
				
			|||
  } | 
				
			|||
  Serial.println(""); | 
				
			|||
  soubor.close();  | 
				
			|||
} | 
				
			|||
 | 
				
			|||
void loop() { | 
				
			|||
} | 
				
			|||
@ -0,0 +1,11 @@ | 
				
			|||
 | 
				
			|||
This directory is intended for PlatformIO Test Runner and project tests. | 
				
			|||
 | 
				
			|||
Unit Testing is a software testing method by which individual units of | 
				
			|||
source code, sets of one or more MCU program modules together with associated | 
				
			|||
control data, usage procedures, and operating procedures, are tested to | 
				
			|||
determine whether they are fit for use. Unit testing finds problems early | 
				
			|||
in the development cycle. | 
				
			|||
 | 
				
			|||
More information about PlatformIO Unit Testing: | 
				
			|||
- https://docs.platformio.org/en/latest/advanced/unit-testing/index.html | 
				
			|||
@ -0,0 +1 @@ | 
				
			|||
3.14 | 
				
			|||
@ -0,0 +1 @@ | 
				
			|||
123 | 
				
			|||
@ -0,0 +1 @@ | 
				
			|||
Test souboru | 
				
			|||
					Loading…
					
					
				
		Reference in new issue