M5Utility 0.0.2 git rev:5c1a751
Loading...
Searching...
No Matches
compatibility_feature.hpp File Reference

Maintain compatibility with Arduino API, etc. More...

Go to the source code of this file.

Namespaces

namespace  m5
 Top level namespace of M5.
 

Functions

Arduino API
unsigned long m5::utility::millis ()
 Returns the number of milliseconds passed since the Arduino board began running the current program.
 
unsigned long m5::utility::micros ()
 Returns the number of microseconds since the Arduino board began running the current program.
 
void m5::utility::delay (const unsigned long ms)
 Pauses the program for the amount of time (in milliseconds) specified as parameter.
 
void m5::utility::delayMicroseconds (const unsigned int us)
 Pauses the program for the amount of time (in microseconds) specified by the parameter.
 

Detailed Description

Maintain compatibility with Arduino API, etc.

Function Documentation

◆ delay()

void m5::utility::delay ( const unsigned long ms)

Pauses the program for the amount of time (in milliseconds) specified as parameter.

Warning
Accuracy varies depending on the environment.

◆ delayMicroseconds()

void m5::utility::delayMicroseconds ( const unsigned int us)

Pauses the program for the amount of time (in microseconds) specified by the parameter.

Warning
Accuracy varies depending on the environment.