Interfacing the SX to Sensirion SHT1x
I have managed to port the example code for interfacing to the Sensirion SHT1x Temperature and Humidity sensor from BS2 to SX/B - thanks goes to those who answered my·ignorant questions.· I did this as I was unable to find any SX/B example of how to do it.
The original BS2 code that I used was authored by Jon Williams - I truely hope I don't offend by placing my ported version up here.· I can't take any credit for the code and the thinking behind it, just the translation into SX/B.
The code is not optimised so if you were to incorporate it into your own project then I'm sure you could do things like encapsulating the math operations in functions etc.
If I have done the wrong thing in making this freely available then please let me know and I will pull it.
All the Best,
PB
The original BS2 code that I used was authored by Jon Williams - I truely hope I don't offend by placing my ported version up here.· I can't take any credit for the code and the thinking behind it, just the translation into SX/B.
The code is not optimised so if you were to incorporate it into your own project then I'm sure you could do things like encapsulating the math operations in functions etc.
If I have done the wrong thing in making this freely available then please let me know and I will pull it.
All the Best,
PB