asadas
Dependencies: mbed
Temperatura.h@0:125c2a60bb2a, 2016-09-21 (annotated)
- Committer:
- erweson
- Date:
- Wed Sep 21 22:15:32 2016 +0000
- Revision:
- 0:125c2a60bb2a
Teste
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
erweson | 0:125c2a60bb2a | 1 | #define ONE_WIRE_BUS 3 |
erweson | 0:125c2a60bb2a | 2 | |
erweson | 0:125c2a60bb2a | 3 | // Definir os sensores por ID |
erweson | 0:125c2a60bb2a | 4 | #define DS18S20MODEL 0x10 |
erweson | 0:125c2a60bb2a | 5 | #define DS18B20MODEL 0x28 |
erweson | 0:125c2a60bb2a | 6 | #define DS1822MODEL 0x22 |
erweson | 0:125c2a60bb2a | 7 | |
erweson | 0:125c2a60bb2a | 8 | // comandos para OneWire |
erweson | 0:125c2a60bb2a | 9 | #define STARTCONVO 0x44 // Define o dispositivo que irá fazer a temperatura |
erweson | 0:125c2a60bb2a | 10 | #define COPYSCRATCH 0x48 // Copia a EEPROM |
erweson | 0:125c2a60bb2a | 11 | #define READSCRATCH 0xBE // Ler a EEPROM |
erweson | 0:125c2a60bb2a | 12 | #define WRITESCRATCH 0x4E // Escreve na EEPROM |
erweson | 0:125c2a60bb2a | 13 | #define RECALLSCRATCH 0xB8 // Recarrega a partir do ultimo, ou seja pega o que ele escreve na EEPROM |
erweson | 0:125c2a60bb2a | 14 | #define READPOWERSUPPLY 0xB4 // Determinear o dispositivo que precisa de energia para funcionar |
erweson | 0:125c2a60bb2a | 15 | |
erweson | 0:125c2a60bb2a | 16 | |
erweson | 0:125c2a60bb2a | 17 | typedef enum { |
erweson | 0:125c2a60bb2a | 18 | SENSOR_1_AGUA =0 , //sensor 0 |
erweson | 0:125c2a60bb2a | 19 | SENSOR_2_BIOMASSA =1, //sensor 1 |
erweson | 0:125c2a60bb2a | 20 | SENSOR_3_GAS =2, //sensor 2 |
erweson | 0:125c2a60bb2a | 21 | }IDSensorTemperatura; |
erweson | 0:125c2a60bb2a | 22 | |
erweson | 0:125c2a60bb2a | 23 | |
erweson | 0:125c2a60bb2a | 24 |