|
@@ -36,22 +36,27 @@
|
|
#else // defined(ARDUINO)
|
|
#else // defined(ARDUINO)
|
|
#error "Unknown system"
|
|
#error "Unknown system"
|
|
#endif // defined(ARDUINO)
|
|
#endif // defined(ARDUINO)
|
|
-//-----------------------------------------------------------------------------
|
|
|
|
|
|
+//------------------------------------------------------------------------------
|
|
#ifdef ESP8266
|
|
#ifdef ESP8266
|
|
// undefine F macro if ESP8266.
|
|
// undefine F macro if ESP8266.
|
|
#undef F
|
|
#undef F
|
|
#endif // ESP8266
|
|
#endif // ESP8266
|
|
-//-----------------------------------------------------------------------------
|
|
|
|
|
|
+//------------------------------------------------------------------------------
|
|
#ifndef F
|
|
#ifndef F
|
|
/** Define macro for strings stored in flash. */
|
|
/** Define macro for strings stored in flash. */
|
|
#define F(str) (str)
|
|
#define F(str) (str)
|
|
#endif // F
|
|
#endif // F
|
|
-//-----------------------------------------------------------------------------
|
|
|
|
|
|
+//------------------------------------------------------------------------------
|
|
/** \return the time in milliseconds. */
|
|
/** \return the time in milliseconds. */
|
|
inline uint16_t curTimeMS() {
|
|
inline uint16_t curTimeMS() {
|
|
return millis();
|
|
return millis();
|
|
}
|
|
}
|
|
-//-----------------------------------------------------------------------------
|
|
|
|
|
|
+//------------------------------------------------------------------------------
|
|
|
|
+/** Delay milliseconds */
|
|
|
|
+inline void delayMS(uint16_t ms) {
|
|
|
|
+ delay(ms);
|
|
|
|
+}
|
|
|
|
+//------------------------------------------------------------------------------
|
|
/**
|
|
/**
|
|
* \class SysCall
|
|
* \class SysCall
|
|
* \brief SysCall - Class to wrap system calls.
|
|
* \brief SysCall - Class to wrap system calls.
|