Skip to content

Commit

Permalink
Add forced calibration
Browse files Browse the repository at this point in the history
  • Loading branch information
pvainio committed Oct 10, 2022
1 parent 48cd21d commit c0862e1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scd30.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,13 @@ func (dev SCD30) SetAutomaticSelfCalibration(value uint16) error {
return dev.sendCommandArg(0x5306, value)
}

// SetForcedCalibration, co2 ppm
func (dev SCD30) SetForcedCalibration(value uint16) error {
mutex.Lock()
defer mutex.Unlock()
return dev.sendCommandArg(0x5204, value)
}

func (dev SCD30) readData(len int) ([]byte, error) {

data := make([]byte, len)
Expand Down

0 comments on commit c0862e1

Please sign in to comment.