Revision: 1504
Author: eur.van.andel
Date: Thu Nov 26 15:56:22 2009
Log: added temperatures to humidity sample, lowered readout frequency to  
prevent self-heating

http://code.google.com/p/jallib/source/detail?r=1504

Modified:
  /trunk/sample/16f876a_sht.jal

=======================================
--- /trunk/sample/16f876a_sht.jal       Fri Nov 20 13:36:24 2009
+++ /trunk/sample/16f876a_sht.jal       Thu Nov 26 15:56:22 2009
@@ -104,28 +104,28 @@



-   lcd_cursor_position(1, 0)              -- row 2, position = 1
-
-   read_raw_temp_sht(t1, t2, crc)
+   lcd_cursor_position(1, 0)           -- row 2, position = 1
+
+   read_raw_temp_sht(t1, t2, crc)      -- 320ms "on" time
     print_byte_hex(lcd, t1)
     print_byte_hex(lcd, t2)
     lcd = " "
-   delay_1s(1)
+   delay_1s(3)                         -- 3s off time, so no self-heating

     read_celsius_temp_sht(temperature_7)
     print_sbyte_dec(lcd, temperature_7)
     lcd = 0b1101_1111                   -- japanese char,  
resembles "degree" symbol
     lcd = "C"
     lcd = " "
-   delay_1s(1)
+   delay_1s(3)

     read_centicelsius_temp_sht(temperature_15)
     format_sword_dec(lcd, temperature_15, 5, 2)
-   lcd = 0b1101_1111                   -- japanese char,  
resembles "degree" symbol
+   lcd = 0b1101_1111
     lcd = "C"
     lcd = " "
     lcd = " "
-   delay_1s(1)
+   delay_1s(3)


  end loop

--

You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en.


Reply via email to