projet capteur connecté ST/SE
Dependencies: HP206C mbed HMC5883L DHT DS1820
config.h@49:b1ac7ebb715f, 2018-10-08 (annotated)
- Committer:
- MathieuM
- Date:
- Mon Oct 08 08:44:16 2018 +0000
- Revision:
- 49:b1ac7ebb715f
- Parent:
- 48:824fda6804f1
- Child:
- 52:d49b6f468b97
change HP20x lib
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
MathieuM | 45:60f602ecd59b | 1 | #ifndef __CONFIG__ |
MathieuM | 45:60f602ecd59b | 2 | #define __CONFIG__ |
MathieuM | 45:60f602ecd59b | 3 | |
MathieuM | 45:60f602ecd59b | 4 | // communication |
MathieuM | 45:60f602ecd59b | 5 | #define SERIAL_PORT D1, D0 |
MathieuM | 45:60f602ecd59b | 6 | #define WAIT_TIME 60*15 // 15 minutes |
MathieuM | 45:60f602ecd59b | 7 | |
MathieuM | 45:60f602ecd59b | 8 | // T_H_air |
MathieuM | 48:824fda6804f1 | 9 | #define PIN_NAME D6 |
MathieuM | 45:60f602ecd59b | 10 | #define DHTtype DHT22 |
MathieuM | 45:60f602ecd59b | 11 | |
MathieuM | 45:60f602ecd59b | 12 | // H_sol |
MathieuM | 45:60f602ecd59b | 13 | #define LOW_H 160 |
MathieuM | 45:60f602ecd59b | 14 | #define HIGH_H 520 |
MathieuM | 45:60f602ecd59b | 15 | |
MathieuM | 49:b1ac7ebb715f | 16 | // Altitude |
MathieuM | 49:b1ac7ebb715f | 17 | #define HP20X_I2C_DEV_ID 0xEC |
MathieuM | 49:b1ac7ebb715f | 18 | |
MathieuM | 46:40b6bbf6167e | 19 | // Warnings |
MathieuM | 46:40b6bbf6167e | 20 | #define W_AIR LED3 |
MathieuM | 46:40b6bbf6167e | 21 | |
MathieuM | 45:60f602ecd59b | 22 | #endif |