feat: 全量同步 254 个常用的 Arduino 扩展库文件
This commit is contained in:
32
arduino-libs/arduino-cli/libraries/Blynk/src/WidgetMap.h
Normal file
32
arduino-libs/arduino-cli/libraries/Blynk/src/WidgetMap.h
Normal file
@@ -0,0 +1,32 @@
|
||||
/**
|
||||
* @file WidgetMap.h
|
||||
* @author Volodymyr Shymanskyy
|
||||
* @license This project is released under the MIT License (MIT)
|
||||
* @copyright Copyright (c) 2016 Volodymyr Shymanskyy
|
||||
* @date Nov 2016
|
||||
* @brief
|
||||
*/
|
||||
|
||||
#ifndef WidgetMap_h
|
||||
#define WidgetMap_h
|
||||
|
||||
#include <Blynk/BlynkWidgetBase.h>
|
||||
|
||||
class WidgetMap
|
||||
: public BlynkWidgetBase
|
||||
{
|
||||
public:
|
||||
WidgetMap(uint8_t vPin) : BlynkWidgetBase(vPin) {}
|
||||
|
||||
void clear() {
|
||||
Blynk.virtualWrite(mPin, "clr");
|
||||
}
|
||||
|
||||
template<typename T1, typename T2, typename T3, typename T4>
|
||||
void location(const T1& index, const T2& lat, const T3& lon, const T4& value) {
|
||||
Blynk.virtualWrite(mPin, index, lat, lon, value);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user