pfodParser 3.55.0 The pfodParser library is handles commands sent from the Android pfodApp, pfodApp supports WiFi, BLE, Bluetooth and SMS connections

pfodLabel.h
Go to the documentation of this file.
1 #ifndef pfodLabel_h
2 #define pfodLabel_h
3 /*
4 * (c)2014-2017 Forward Computing and Control Pty. Ltd.
5 * NSW Australia, www.forward.com.au
6 * This code is not warranted to be fit for any purpose. You may only use it at your own risk.
7 * This code may be freely used for both private and commercial use
8 * Provide this copyright is maintained.
9 */
10 #include <stdint.h>
11 #include <Arduino.h>
12 #include "pfodDwgsBase.h"
13
14 class pfodLabel : public pfodDwgsBase {
15 public:
16 pfodLabel();
17 pfodLabel &text(const char *txt); // default ""
18 pfodLabel &text(const __FlashStringHelper *txtF);
19 pfodLabel &units(const char *txt); // default ""
20 pfodLabel &units(const __FlashStringHelper *txtF);
21 pfodLabel &floatReading(float value);
22 pfodLabel &intValue(int32_t _value);
23 pfodLabel &displayMax(float _displayMax); // default 1
24 pfodLabel &displayMin(float _displayMin); // default 0
25 pfodLabel &maxValue(int32_t _max); // default 1
26 pfodLabel &minValue(int32_t _min); // default 0
27 pfodLabel &decimals(int _decPlaces); // default 2 limits to -6 to +6
28 pfodLabel &color(int _color); // default BLACK_WHITE
29 pfodLabel &fontSize(int _font); // default 0 = <+0>
30 pfodLabel &bold();
31 pfodLabel &center();
32 pfodLabel &left();
33 pfodLabel &right();
34 pfodLabel &italic();
35 pfodLabel &underline();
36 pfodLabel &encode(); // replace restricted chars in text and units
37 pfodLabel &idx(uint16_t _idx); // default 0 i.e. not set
38 pfodLabel &autoIdx(pfodAutoIdx &a_idx); // reserve new idx if 0
39 pfodLabel &offset(float _colOffset, float _rowOffset); // default 0,0
40 void init(Print *out, struct VALUES* _values);
41 void send(char _startChar = '|');
42 private:
43 void sendValue(int32_t val);
44 };
45 #endif // pfodLabel_h
pfodAutoIdx
Definition: pfodAutoIdx.h:4
pfodDwgsBase
Definition: pfodDwgsBase.h:55
pfodDwgsBase::out
Print * out
Definition: pfodDwgsBase.h:58
pfodLabel
Definition: pfodLabel.h:14
pfodLabel::offset
pfodLabel & offset(float _colOffset, float _rowOffset)
pfodLabel::center
pfodLabel & center()
pfodLabel::encode
pfodLabel & encode()
pfodLabel::floatReading
pfodLabel & floatReading(float value)
pfodLabel::bold
pfodLabel & bold()
pfodLabel::units
pfodLabel & units(const char *txt)
pfodLabel::units
pfodLabel & units(const __FlashStringHelper *txtF)
pfodLabel::displayMin
pfodLabel & displayMin(float _displayMin)
pfodLabel::idx
pfodLabel & idx(uint16_t _idx)
pfodLabel::right
pfodLabel & right()
pfodLabel::underline
pfodLabel & underline()
pfodLabel::text
pfodLabel & text(const char *txt)
pfodLabel::displayMax
pfodLabel & displayMax(float _displayMax)
pfodLabel::decimals
pfodLabel & decimals(int _decPlaces)
pfodLabel::autoIdx
pfodLabel & autoIdx(pfodAutoIdx &a_idx)
pfodLabel::text
pfodLabel & text(const __FlashStringHelper *txtF)
pfodLabel::send
void send(char _startChar='|')
pfodLabel::maxValue
pfodLabel & maxValue(int32_t _max)
pfodLabel::pfodLabel
pfodLabel()
pfodLabel::italic
pfodLabel & italic()
pfodLabel::fontSize
pfodLabel & fontSize(int _font)
pfodLabel::init
void init(Print *out, struct VALUES *_values)
pfodLabel::intValue
pfodLabel & intValue(int32_t _value)
pfodLabel::minValue
pfodLabel & minValue(int32_t _min)
pfodLabel::left
pfodLabel & left()
pfodLabel::color
pfodLabel & color(int _color)
pfodDwgsBase.h
VALUES
Definition: pfodDwgsBase.h:15