#include <freertos/FreeRTOS.h>
#include <freertos/task.h>
#include <esp_random.h>
#include <stdint.h>
#include <string>
Go to the source code of this file.
|
| void | delay (uint32_t ms) |
| | Wait for specified amount of milliseconds. More...
|
| |
| void | waitSeconds (float seconds) |
| | Wait for specified amount of seconds. More...
|
| |
| void | cekejVteriny (float vteriny) |
| | Čeká po specifikovaný počet vteřin. More...
|
| |
| uint32_t | millis () |
| | Returns time since boot in milliseconds. More...
|
| |
| float | seconds () |
| | Returns time since boot in seconds. More...
|
| |
| float | vteriny () |
| | Vrátí počet vteřin od začátku programu. More...
|
| |
| long | random (long max) |
| | Get random number from 0 to max. More...
|
| |
| long | random (long min, long max) |
| | Get random number from min to max. More...
|
| |
| long | nahodne (long maximum) |
| | Vrátí náhodné číslo od 0 do maximum. More...
|
| |
| long | nahodne (long minimum, long maximum) |
| | Vrátí náhodné číslo od minima do maximum. More...
|
| |
| void | saveInt (const std::string &name, int value) |
| | Saves an integer into the persisent NVS storage. More...
|
| |
| int | loadInt (const std::string &name, int defaultVal=0) |
| | Loads an integer from the persistent NVS storage. More...
|
| |
◆ cekejVteriny()
| void cekejVteriny |
( |
float |
vteriny | ) |
|
|
inline |
Čeká po specifikovaný počet vteřin.
- Parameters
-
| vteriny | Kolik vteřin se má čekat |
◆ delay()
| void delay |
( |
uint32_t |
ms | ) |
|
|
inline |
Wait for specified amount of milliseconds.
- Parameters
-
| ms | number of milliseconds to wait |
◆ loadInt()
| int loadInt |
( |
const std::string & |
name, |
|
|
int |
defaultVal = 0 |
|
) |
| |
Loads an integer from the persistent NVS storage.
- Parameters
-
| name | name of the value |
| defaultVal | default value returned when the name does not exist |
- Returns
- int
◆ millis()
Returns time since boot in milliseconds.
- Returns
- uint32_t number of milliseconds since boot
◆ nahodne() [1/2]
| long nahodne |
( |
long |
maximum | ) |
|
|
inline |
Vrátí náhodné číslo od 0 do maximum.
- Parameters
-
| maximum | maximální číslo, které můžu dostat |
- Returns
- long Náhodné číso
◆ nahodne() [2/2]
| long nahodne |
( |
long |
minimum, |
|
|
long |
maximum |
|
) |
| |
|
inline |
Vrátí náhodné číslo od minima do maximum.
- Parameters
-
| minimum | minimální číslo, které můžu dostat |
| maximum | maximální číslo, které můžu dostat |
- Returns
- long Náhodné číso
◆ random() [1/2]
Get random number from 0 to max.
- Parameters
-
| max | Uper limit of random number |
- Returns
- long Random number
◆ random() [2/2]
| long random |
( |
long |
min, |
|
|
long |
max |
|
) |
| |
|
inline |
Get random number from min to max.
- Parameters
-
| min | Lower limit of random number |
| max | Uper limit of random number |
- Returns
- long Random number
◆ saveInt()
| void saveInt |
( |
const std::string & |
name, |
|
|
int |
value |
|
) |
| |
Saves an integer into the persisent NVS storage.
- Parameters
-
| name | name of the value |
| value | |
◆ seconds()
Returns time since boot in seconds.
- Returns
- float number of seconds since boot
◆ vteriny()
Vrátí počet vteřin od začátku programu.
- Returns
- float počet vteřin od začátku programu
◆ waitSeconds()
| void waitSeconds |
( |
float |
seconds | ) |
|
|
inline |
Wait for specified amount of seconds.
- Parameters
-
| seconds | number of seconds to wait |