This code reads a simple temperature value from DHT11 then send via RF24 in every 5 secs.
Dependencies: DHT11 RF24_fork WakeUp mbed
Diff: config.h
- Revision:
- 0:49273053c399
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/config.h Thu May 03 17:13:20 2018 +0000 @@ -0,0 +1,32 @@ +#ifndef CONFIG_H +#define CONFIG_H + + +//This header contains calibration data + + + + #define RadioChannel 90 + #define DataAddress 0xF0F0F0F0F0 + + #define ledpin PA_8 + #define unused_pin PA_1 + + #define nrf_CE PB_4 + #define nrf_CSN PB_3 + #define spi_SCK PA_5 + #define spi_MOSI PA_7 + #define spi_MISO PA_6 + #define nrf_irq PA_15 + + #define i2c_sda PB_7 + #define i2c_scl PB_6 + + #define RXD PA_3 + #define TXD PA_2 + + + +#endif + +