Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Blynk_Example_WIZwiki-W7500
Fork of Blynk by
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 17:30:45 by
1.7.2
