Shop OBEX P1 Docs P2 Docs Learn Events
SHT-1x temperature output — Parallax Forums

SHT-1x temperature output

creepykirkcreepykirk Posts: 1
edited 2012-08-08 22:18 in BASIC Stamp
I am working to connect two basic stamps together, one with an SHT-1x and the other with a pushbutton and a 16x2 LCD.

The goal is to have a user press PB1, which "asks" the other BS what the temperature reading is, receive that value and display it on the LCD.

I am having trouble figuring out which VAR the temperature is actually stored in on the board with the SHT-1x. Also, after some digging around, I believe that I need to use the SEROUT command to send that value to the other BS using this code I found in another thread:


serout so\fc, Baud, 2, Main,["Report "]
for idx = 0 to 5
get idx,temp
serout so\fc, Baud, 2, Main, [temp]
next

I appreciate any help anyone can offer, and any suggestions are welcome, too!

Thanks!

Comments

Sign In or Register to comment.