This code reads a simple temperature value from DHT11 then send via RF24 in every 5 secs.

Dependencies:   DHT11 RF24_fork WakeUp mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers config.h Source File

config.h

00001 #ifndef CONFIG_H
00002 #define CONFIG_H
00003 
00004 
00005 //This header contains calibration data
00006 
00007 
00008  
00009     #define RadioChannel 90
00010     #define DataAddress 0xF0F0F0F0F0
00011 
00012     #define ledpin      PA_8
00013     #define unused_pin  PA_1
00014     
00015     #define nrf_CE      PB_4
00016     #define nrf_CSN     PB_3
00017     #define spi_SCK     PA_5
00018     #define spi_MOSI    PA_7
00019     #define spi_MISO    PA_6
00020     #define nrf_irq     PA_15 
00021     
00022     #define i2c_sda     PB_7 
00023     #define i2c_scl     PB_6
00024     
00025     #define RXD         PA_3
00026     #define TXD         PA_2
00027     
00028 
00029 
00030 #endif
00031 
00032