Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Sensor/TweLite_Sensors.h@33:d939479e7b13, 2017-03-01 (annotated)
- Committer:
- naoya1687
- Date:
- Wed Mar 01 08:05:52 2017 +0000
- Revision:
- 33:d939479e7b13
- Parent:
- 31:cef6ee7af014
- Child:
- 35:63ccdae58da4
BatteryChecker.h???twelite_sensors??
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| naoya1687 | 30:6d3a78bc1925 | 1 | #ifndef BIRD_SENSOR_TWELITE_SENSORS_H_ |
| naoya1687 | 30:6d3a78bc1925 | 2 | #define BIRD_SENSOR_TWELITE_SENSORS_H_ |
| naoya1687 | 30:6d3a78bc1925 | 3 | #include "mbed.h" |
| naoya1687 | 33:d939479e7b13 | 4 | #include <string> |
| naoya1687 | 30:6d3a78bc1925 | 5 | #include "Global.h" |
| naoya1687 | 30:6d3a78bc1925 | 6 | |
| naoya1687 | 30:6d3a78bc1925 | 7 | class TweLite_Sensors { |
| naoya1687 | 30:6d3a78bc1925 | 8 | private: |
| naoya1687 | 33:d939479e7b13 | 9 | RawSerial twelite; |
| naoya1687 | 33:d939479e7b13 | 10 | void scan(); |
| naoya1687 | 33:d939479e7b13 | 11 | void twelite_rx(); |
| naoya1687 | 33:d939479e7b13 | 12 | Ticker flipper; |
| naoya1687 | 33:d939479e7b13 | 13 | void flip(); |
| naoya1687 | 33:d939479e7b13 | 14 | static std::string str; |
| naoya1687 | 33:d939479e7b13 | 15 | char size; |
| naoya1687 | 33:d939479e7b13 | 16 | float cadencevalue; |
| naoya1687 | 33:d939479e7b13 | 17 | float cadenceBattery; |
| naoya1687 | 33:d939479e7b13 | 18 | float ultsonicvalue; |
| naoya1687 | 33:d939479e7b13 | 19 | float ultsonicBattery; |
| naoya1687 | 31:cef6ee7af014 | 20 | char data[8]; |
| naoya1687 | 33:d939479e7b13 | 21 | bool receivef; |
| naoya1687 | 33:d939479e7b13 | 22 | char request; |
| naoya1687 | 31:cef6ee7af014 | 23 | |
| naoya1687 | 30:6d3a78bc1925 | 24 | public: |
| naoya1687 | 30:6d3a78bc1925 | 25 | TweLite_Sensors(PinName tx, PinName rx); |
| naoya1687 | 33:d939479e7b13 | 26 | void update(); |
| naoya1687 | 31:cef6ee7af014 | 27 | }; |
| naoya1687 | 30:6d3a78bc1925 | 28 | |
| naoya1687 | 30:6d3a78bc1925 | 29 | #endif |