Esempio n. 1
0
bool NextionWaveform::setGridHeight(uint16_t height)
{
  return setNumberProperty("gdh", height);
}
Esempio n. 2
0
bool NextionWaveform::setGridWidth(uint16_t width)
{
  return setNumberProperty("gdw", width);
}
/*!
 * \brief Sets the active font for the text.
 * \param id Font ID
 * \param refresh If the widget should be refreshed
 * \return True if successful
 * \see INextionFontStyleable::getFont
 */
bool INextionFontStyleable::setFont(uint8_t id, bool refresh)
{
  return afterSet(setNumberProperty("font", id), refresh);
}
/*!
 * \brief Sets the vertical alignment of the text.
 * \param align Alignment
 * \param refresh If the widget should be refreshed
 * \return True if successful
 * \see INextionFontStyleable::getVAlignment
 */
bool INextionFontStyleable::setVAlignment(NextionFontAlignment align,
                                          bool refresh)
{
  return afterSet(setNumberProperty("ycen", align), refresh);
}
Esempio n. 5
0
bool NextionCrop::setPictureID(uint16_t id)
{
  return setNumberProperty("pic", id);
}