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:
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>
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
Print * out
Definition: pfodDwgsBase.h:58
pfodLabel & offset(float _colOffset, float _rowOffset)
pfodLabel & center()
pfodLabel & encode()
pfodLabel & floatReading(float value)
pfodLabel & bold()
pfodLabel & units(const char *txt)
pfodLabel & units(const __FlashStringHelper *txtF)
pfodLabel & displayMin(float _displayMin)
pfodLabel & idx(uint16_t _idx)
pfodLabel & right()
pfodLabel & underline()
pfodLabel & text(const char *txt)
pfodLabel & displayMax(float _displayMax)
pfodLabel & decimals(int _decPlaces)
pfodLabel & autoIdx(pfodAutoIdx &a_idx)
pfodLabel & text(const __FlashStringHelper *txtF)
void send(char _startChar='|')
pfodLabel & maxValue(int32_t _max)
pfodLabel & italic()
pfodLabel & fontSize(int _font)
void init(Print *out, struct VALUES *_values)
pfodLabel & intValue(int32_t _value)
pfodLabel & minValue(int32_t _min)
pfodLabel & left()
pfodLabel & color(int _color)