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 2825 2013-03-10 14:57:58Z kaklik $" |
3 |
#define ID "$Id: main.c 2826 2013-03-10 15:27:21Z kaklik $" |
4 |
#include "main.h" |
4 |
#include "main.h" |
5 |
#include <string.h> |
5 |
#include <string.h> |
6 |
|
6 |
|
7 |
#CASE // Case sensitive compiler |
7 |
#CASE // Case sensitive compiler |
8 |
|
8 |
|
9 |
#define SEND_DELAY 50 // Time between two characters on RS232 |
9 |
#define SEND_DELAY 50 // Time between two characters on RS232 |
10 |
|
10 |
|
11 |
char VER[4]=VERSION; // Buffer for concatenate of a version string |
11 |
char VER[4]=VERSION; // Buffer for concatenate of a version string |
12 |
|
12 |
|
13 |
#define ONE_WIRE_PIN PIN_C7 // DS18B20 sensor connection |
13 |
#define ONE_WIRE_PIN PIN_B1 // DS18B20 sensor connection |
14 |
#include "..\ds1820.c" |
14 |
#include "..\ds1820.c" |
15 |
|
15 |
|
16 |
#define sht_data_pin PIN_D0 // SHT11 sensor connection |
16 |
#define sht_data_pin PIN_D0 // SHT11 sensor connection |
17 |
#define sht_clk_pin PIN_D1 |
17 |
#define sht_clk_pin PIN_D1 |
18 |
#include "..\SHT.c" |
18 |
#include "..\SHT.c" |