This commit is contained in:
Yuri Trikoz
2020-06-25 05:09:11 +03:00
parent 3daa517c7e
commit b50e1c9791
73 changed files with 260 additions and 296 deletions

View File

@@ -20,37 +20,37 @@ bool fileSystemInit();
/*
* Удалить файл
*/
void removeFile(const String filename);
void removeFile(const String& filename);
/*
* Открыть файл на позиции
*/
File seekFile(const String filename, size_t position = 0);
File seekFile(const String& filename, size_t position = 0);
/*
* Чтение строки из файла
* возвращает стоку из файла в которой есть искомое слово found
*/
String readFileString(const String filename, const String to_find);
const String readFileString(const String& filename, const String& to_find);
/*
* Добовление строки в файл
*/
String addFile(const String filename, const String str);
const String addFile(const String& filename, const String& str);
/*
* Запись строки в файл
*/
String writeFile(const String filename, const String str);
const String writeFile(const String& filename, const String& str);
/*
* Чтение файла в строку
*/
String readFile(const String filename, size_t max_size);
const String readFile(const String& filename, size_t max_size);
/*
* Размер файла
*/
String getFileSize(const String filename);
const String getFileSize(const String& filename);
bool copyFile(const String src, const String dst, bool overwrite = true);
bool copyFile(const String& src, const String& dst, bool overwrite = true);

View File

@@ -4,8 +4,7 @@
#include "CommonTypes.h"
const String getPresetFile(uint8_t preset, ConfigType_t type);
const String getConfigFile(uint8_t preset, ConfigType_t type);
const String getItemName(Item_t item);
const Item_t getPresetItem(uint8_t preset);

7
include/Utils/i2c_bus.h Normal file
View File

@@ -0,0 +1,7 @@
#pragma once
#include <Arduino.h>
void do_i2c_scanning();
const String i2c_scan();