visual studioにてc#でadafruit ft232hを制御し
湿度、気圧、温度のセンサーを取り付けパソコンのソフトに表示させたいのですが
どのようにC#のプログラムを組めばいいのかわかりません
回答よろしくお願いします
参考
センサーはAE-BME280
公式には
import Adafruit_BMP.BMP085 as BMP085;
import Adafruit_GPIO.FT232H as FT232H
Temporarily disable FTDI serial drivers to use the FT232H device.
FT232H.use_FT232H()
Create an FT232H device instance.
ft232h = FT232H.FT232H()
Create BMP085 device with FT232H as I2C provider.
sensor = BMP085.BMP085(i2c=ft232h)
You can also optionally change the BMP085 mode to one of BMP085_ULTRALOWPOWER,
BMP085_STANDARD, BMP085_HIGHRES, or BMP085_ULTRAHIGHRES. See the BMP085
datasheet for more details on the meanings of each mode (accuracy and power
consumption are primarily the differences). The default mode is STANDARD.
#sensor = BMP085.BMP085(mode=BMP085.BMP085_ULTRAHIGHRES, i2c=ft232h)
print 'Temp = {0:0.2f} *C'.format(sensor.read_temperature())
print 'Pressure = {0:0.2f} Pa'.format(sensor.read_pressure())
print 'Altitude = {0:0.2f} m'.format(sensor.read_altitude())
print 'Sealevel Pressure = {0:0.2f} Pa'.format(sensor.read_sealevel_pressure())
このようなプログラムがありました