import SwiftIO
import MadBoard
import SHT3x
import LCD1602
@main
public struct Humiture {
public static func main() {
let i2c = I2C(Id.I2C0)
let lcd = LCD1602(i2c)
let sht = SHT3x(i2c)
while true{
let temp = sht.readCelsius()
lcd.write(x:0, y:0, "Temperature:")
lcd.write(x: 0, y: 1, temp)
lcd.write(x:4, y:1, " ")
lcd.write(x:5, y:1, "C")
sleep(ms: 1000)
}
}
}