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
WidgetMap.h
00001 /** 00002 * @file WidgetMap.h 00003 * @author Volodymyr Shymanskyy 00004 * @license This project is released under the MIT License (MIT) 00005 * @copyright Copyright (c) 2016 Volodymyr Shymanskyy 00006 * @date Nov 2016 00007 * @brief 00008 */ 00009 00010 #ifndef WidgetMap_h 00011 #define WidgetMap_h 00012 00013 #include <Blynk/BlynkWidgetBase.h > 00014 00015 class WidgetMap 00016 : public BlynkWidgetBase 00017 { 00018 public: 00019 WidgetMap(uint8_t vPin) : BlynkWidgetBase(vPin) {} 00020 00021 void clear() { 00022 Blynk.virtualWrite(mPin, "clr"); 00023 } 00024 00025 template<typename T1, typename T2, typename T3, typename T4> 00026 void location(const T1& index, const T2& lat, const T3& lon, const T4& value) { 00027 Blynk.virtualWrite(mPin, index, lat, lon, value); 00028 } 00029 00030 }; 00031 00032 #endif
Generated on Tue Jul 12 2022 15:11:12 by 1.7.2