3 #ifndef __NEONEXTION_INEXTIONSTRINGVALUED
4 #define __NEONEXTION_INEXTIONSTRINGVALUED
60 snprintf(buffer, 8,
"%ld", value);
75 sscanf(buffer,
"%ld", &value);
bool setText(char *buffer)
Sets the value of the string.
Definition: INextionStringValued.h:46
size_t getText(char *buffer, size_t len)
Gets the value of the string.
Definition: INextionStringValued.h:35
Interface for widgets that hold a string value.
Definition: INextionStringValued.h:16
uint32_t getTextAsNumber()
Gets the text parsed as a number.
Definition: INextionStringValued.h:69
INextionStringValued(Nextion &nex, uint8_t page, uint8_t component, const char *name)
Create a new widget adapter.
Definition: INextionStringValued.h:22
Driver for a physical Nextion device.
Definition: Nextion.h:31
bool setTextAsNumber(uint32_t value)
Sets the text by a numercal value.
Definition: INextionStringValued.h:57