Blynk library for embedded hardware. Works with Arduino, ESP8266, Raspberry Pi, Intel Edison/Galileo, LinkIt ONE, Particle Core/Photon, Energia, ARM mbed, etc. http://www.blynk.cc/
Dependents: Blynk_RBL_BLE_Nano Blynk_MicroBit Blynk_Serial Blynk_RBL_BLE_Nano
Diff: WidgetMap.h
- Revision:
- 9:7369ec77a3ea
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/WidgetMap.h Thu Jan 05 14:55:36 2017 +0200 @@ -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