Ocky Kristanto / NextionSerial
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers DualStateButton.cpp Source File

DualStateButton.cpp

00001 #include "DualStateButton.h"
00002 #include "NextionSerial.h"
00003 
00004 DualStateButton::DualStateButton(uint32_t aPage, uint32_t aId, const std::string& aObjectName, NextionSerial& aNextionSerial) : 
00005   Button(aPage, aId, aObjectName, aNextionSerial)
00006 {
00007 }
00008 
00009 bool DualStateButton::GetState() const
00010 {
00011     return iNextionSerial.GetCurrentDualStateButton(iObjectName);
00012 }