![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Program to satellite, send variables of temperature, pressure, RH, GPS
Dependencies: mbed nRF24L01P BMP180 DHT11 GPS
Sensores.h@1:b91db48be151, 2019-11-30 (annotated)
- Committer:
- JorgeGtz
- Date:
- Sat Nov 30 18:32:58 2019 +0000
- Revision:
- 1:b91db48be151
- Parent:
- 0:e8e530360fe5
Satelite
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
JorgeGtz | 0:e8e530360fe5 | 1 | #ifndef SENSORES_H |
JorgeGtz | 0:e8e530360fe5 | 2 | #define SENSORES_H |
JorgeGtz | 0:e8e530360fe5 | 3 | |
JorgeGtz | 0:e8e530360fe5 | 4 | #define Rx PA_9 |
JorgeGtz | 0:e8e530360fe5 | 5 | #define Tx PA_10 |
JorgeGtz | 0:e8e530360fe5 | 6 | |
JorgeGtz | 0:e8e530360fe5 | 7 | #define LED PC_13 |
JorgeGtz | 0:e8e530360fe5 | 8 | |
JorgeGtz | 0:e8e530360fe5 | 9 | #define SDA PB_9 |
JorgeGtz | 0:e8e530360fe5 | 10 | #define SCL PB_8 |
JorgeGtz | 0:e8e530360fe5 | 11 | |
JorgeGtz | 0:e8e530360fe5 | 12 | #define SENSOR PB_11 |
JorgeGtz | 0:e8e530360fe5 | 13 | |
JorgeGtz | 0:e8e530360fe5 | 14 | #define ARK_Rx PA_2 |
JorgeGtz | 0:e8e530360fe5 | 15 | #define ARK_Tx PA_3 |
JorgeGtz | 0:e8e530360fe5 | 16 | |
JorgeGtz | 0:e8e530360fe5 | 17 | #define MOSI PA_7 |
JorgeGtz | 0:e8e530360fe5 | 18 | #define MISO PA_6 |
JorgeGtz | 0:e8e530360fe5 | 19 | #define SCK PA_5 |
JorgeGtz | 0:e8e530360fe5 | 20 | #define CSN PB_0 |
JorgeGtz | 0:e8e530360fe5 | 21 | #define CE PB_1 |
JorgeGtz | 0:e8e530360fe5 | 22 | #define IRQ PA_1 |
JorgeGtz | 0:e8e530360fe5 | 23 | |
JorgeGtz | 0:e8e530360fe5 | 24 | #define TRANSFER_SIZE 7 |
JorgeGtz | 0:e8e530360fe5 | 25 | |
JorgeGtz | 0:e8e530360fe5 | 26 | |
JorgeGtz | 0:e8e530360fe5 | 27 | |
JorgeGtz | 0:e8e530360fe5 | 28 | void init_sensores(void); |
JorgeGtz | 0:e8e530360fe5 | 29 | void init_serial(void); |
JorgeGtz | 0:e8e530360fe5 | 30 | void init_transmisor(void); |
JorgeGtz | 0:e8e530360fe5 | 31 | |
JorgeGtz | 0:e8e530360fe5 | 32 | void actualizar(void); |
JorgeGtz | 0:e8e530360fe5 | 33 | void enviar_datos(void); |
JorgeGtz | 0:e8e530360fe5 | 34 | |
JorgeGtz | 0:e8e530360fe5 | 35 | void presion(void); |
JorgeGtz | 0:e8e530360fe5 | 36 | void sensor_dht11(void); |
JorgeGtz | 0:e8e530360fe5 | 37 | void global(void); |
JorgeGtz | 0:e8e530360fe5 | 38 | void transmitir(void); |
JorgeGtz | 0:e8e530360fe5 | 39 | |
JorgeGtz | 0:e8e530360fe5 | 40 | |
JorgeGtz | 0:e8e530360fe5 | 41 | #endif |