| Line 1... |
Line 1... |
| 1 |
/**** Automatic weather station 01A ****/ |
1 |
/**** Automatic weather station 01A ****/ |
| 2 |
#define VERSION "0.1" |
2 |
#define VERSION "0.1" |
| 3 |
#define ID "$Id: main.c 2915 2013-04-14 14:05:52Z kaklik $" |
3 |
#define ID "$Id: main.c 2916 2013-04-14 17:42:03Z kaklik $" |
| 4 |
#include "main.h" |
4 |
#include "main.h" |
| 5 |
#include ".\common\dbloader.h" |
5 |
#include ".\common\dbloader.h" |
| 6 |
#include <string.h> |
6 |
#include <string.h> |
| 7 |
|
7 |
|
| 8 |
#CASE // Case sensitive compiler |
8 |
#CASE // Case sensitive compiler |
| Line 16... |
Line 16... |
| 16 |
|
16 |
|
| 17 |
#define sht_data_pin PIN_D0 // SHT11 sensor connection |
17 |
#define sht_data_pin PIN_D0 // SHT11 sensor connection |
| 18 |
#define sht_clk_pin PIN_D1 |
18 |
#define sht_clk_pin PIN_D1 |
| 19 |
#include "..\SHT.c" |
19 |
#include "..\SHT.c" |
| 20 |
|
20 |
|
| 21 |
#use i2c(master, sda=PIN_D6, scl=PIN_D5) |
21 |
#use i2c(master, sda=PIN_D2, scl=PIN_D3) |
| 22 |
#include "..\SHT25.h" |
22 |
#include "..\SHT25.h" |
| 23 |
|
23 |
|
| 24 |
#define CSN_SPI PIN_C2 // preassure sensor connection |
24 |
#define CSN_SPI PIN_C2 // preassure sensor connection |
| 25 |
#include "..\MPL115A1.c" |
25 |
#include "..\MPL115A1.c" |
| 26 |
|
26 |
|