o: ActiveSupport::Cache::Entry :@compressedF: @value"<"6
main.c
18 18
#define sht_clk_pin    PIN_D1
19 19
#include "..\SHT.c"
20 20

  
21
#use i2c(master, sda=PIN_C4, scl=PIN_C3)
21
#use i2c(master, sda=PIN_D6, scl=PIN_D5)
22 22
#include "..\SHT25.h"
23 23

  
24 24
#define CSN_SPI PIN_C2        // preassure sensor connection
25 25
#include "..\MPL115A1.c"
26 26

  
27
unsigned int16 timer0_overflow_count=0;
28
float anemo=0;
27
unsigned int16 timer0_overflow_count;
28
float anemo;
29 29

  
30 30
int1  barometer_present;
31 31

  
......
91 91

  
92 92
   restart_wdt();  //---WDT
93 93

  
94
   // barometer init
95
   barometer_present = MPL_init();  // get correction coefficients from the sensor 
96

  
94 97
   sht_init();
95
   barometer_present = MPL_init();  // get correction coefficients from the sensor 
96
   
98

  
97 99
   SHT25_soft_reset();
98 100
   
101
   // anemometer init
102
   set_timer0(0);
103
   set_timer1(0);
104
   timer0_overflow_count=0;
105
   anemo=0;
106
   
99 107
   restart_wdt();  //---WDT
100 108

  
101 109
   while (TRUE)
......
117 125
     
118 126
     SHT_temp2 = SHT25_get_temp();
119 127
     SHT_hum2 = SHT25_get_hum();
120
     
128
     SHT_temp2 = (SHT_temp2 + 273.15)*100;
129

  
121 130
     if (barometer_present == TRUE)
122 131
     {
123 132
       barometer_temperature =  (MPL_get_temperature() + 273.15)*100;
:@created_atf1421746978.583885^_:@expires_in0