Initial commit
Dependencies: MODSERIAL Terminal TextLCD mbed
presence.cpp@1:a6b0e0ce3e7a, 2014-12-05 (annotated)
- Committer:
- anmar
- Date:
- Fri Dec 05 10:27:17 2014 +0000
- Revision:
- 1:a6b0e0ce3e7a
- Parent:
- 0:0903545c0460
Initial commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
anmar | 0:0903545c0460 | 1 | #include "presence.h" |
anmar | 0:0903545c0460 | 2 | |
anmar | 0:0903545c0460 | 3 | |
anmar | 0:0903545c0460 | 4 | |
anmar | 0:0903545c0460 | 5 | |
anmar | 0:0903545c0460 | 6 | Presence::Presence() |
anmar | 0:0903545c0460 | 7 | { |
anmar | 0:0903545c0460 | 8 | } |
anmar | 0:0903545c0460 | 9 | |
anmar | 0:0903545c0460 | 10 | |
anmar | 0:0903545c0460 | 11 | Presence::Presence(Terminal *term) |
anmar | 0:0903545c0460 | 12 | { |
anmar | 0:0903545c0460 | 13 | i2c = new I2C(p28, p27); |
anmar | 0:0903545c0460 | 14 | |
anmar | 0:0903545c0460 | 15 | i2c->frequency(100000); |
anmar | 0:0903545c0460 | 16 | |
anmar | 0:0903545c0460 | 17 | |
anmar | 0:0903545c0460 | 18 | thermal = new Thermal(term, i2c); |
anmar | 0:0903545c0460 | 19 | } |
anmar | 0:0903545c0460 | 20 | |
anmar | 0:0903545c0460 | 21 | void Presence::poll() |
anmar | 0:0903545c0460 | 22 | { |
anmar | 0:0903545c0460 | 23 | |
anmar | 0:0903545c0460 | 24 | } |