Skip to content

toitware/toit-si7006

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SI7006

A low level driver for the Si7006-A20 sensor.

This sensor is a combined temperature and humidity sensor.

Documentation is available at

Usage

A simple usage example.

import fixed_point show *
import gpio
import i2c
import si7006

main:
  sda := gpio.Pin 17
  scl := gpio.Pin 16
  bus := i2c.Bus --sda=sda --scl=scl --frequency=frequency
  device := bus.device si7006.I2C_ADDRESS
  driver := si7006.Driver device
  print "Firmware: $driver.firmware"
  print "Serial#: $(%016x driver.serial_number)"
  print "Temperature: $(FixedPoint --decimals=1 driver.read_temperature)C"
  print "Humidity: $(FixedPoint --decimals=1 driver.read_humidity)%"

Features and bugs

Please file feature requests and bugs at the issue tracker.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages