SHT1x I2C for Visual Studio

userHead alrenyang 2018-08-23 17:52:22 1948 Views1 Replies
Hi, I am using for visual studio. The sensor is SHT1X temperature / Humidity Sensor.
But using call in the visual studio do not get i2c temperature value. Under my code.

public partial class Form1 : Form
Arduino arduino = new Arduino();
Int16[] rxd = new Int16[6];
public Form1()
byte I2C_Hum = 0b00000101;
byte I2C_Temp = 0b00000011;
private void button1_Click(object sender, EventArgs e)
arduino.wireRequest(I2C_Hum, Arduino.NONE, rxd , Arduino.I2C_MODE_READ_CONTINUOUSLY)

Alren Yang