Home Alert System
Dependencies: PWM_Tone_Library DHT
M2XStreamClient/Print.h@5:569a4894abc1, 2019-03-08 (annotated)
- Committer:
- aziz111
- Date:
- Fri Mar 08 17:15:02 2019 +0000
- Revision:
- 5:569a4894abc1
- Parent:
- 3:78f223d34f36
Final
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ethaderu | 3:78f223d34f36 | 1 | #ifndef Print_h |
ethaderu | 3:78f223d34f36 | 2 | #define Print_h |
ethaderu | 3:78f223d34f36 | 3 | |
ethaderu | 3:78f223d34f36 | 4 | #include <stddef.h> |
ethaderu | 3:78f223d34f36 | 5 | #include <stdint.h> |
ethaderu | 3:78f223d34f36 | 6 | |
ethaderu | 3:78f223d34f36 | 7 | class Print { |
ethaderu | 3:78f223d34f36 | 8 | public: |
ethaderu | 3:78f223d34f36 | 9 | size_t print(const char* s); |
ethaderu | 3:78f223d34f36 | 10 | size_t print(char c); |
ethaderu | 3:78f223d34f36 | 11 | size_t print(int n); |
ethaderu | 3:78f223d34f36 | 12 | size_t print(long n); |
ethaderu | 3:78f223d34f36 | 13 | size_t print(double n, int digits = 2); |
ethaderu | 3:78f223d34f36 | 14 | |
ethaderu | 3:78f223d34f36 | 15 | size_t println(const char* s); |
ethaderu | 3:78f223d34f36 | 16 | size_t println(char c); |
ethaderu | 3:78f223d34f36 | 17 | size_t println(int n); |
ethaderu | 3:78f223d34f36 | 18 | size_t println(long n); |
ethaderu | 3:78f223d34f36 | 19 | size_t println(double n, int digits = 2); |
ethaderu | 3:78f223d34f36 | 20 | size_t println(); |
ethaderu | 3:78f223d34f36 | 21 | |
ethaderu | 3:78f223d34f36 | 22 | virtual size_t write(uint8_t c) = 0; |
ethaderu | 3:78f223d34f36 | 23 | virtual size_t write(const uint8_t* buf, size_t size); |
ethaderu | 3:78f223d34f36 | 24 | }; |
ethaderu | 3:78f223d34f36 | 25 | |
ethaderu | 3:78f223d34f36 | 26 | #endif |