|
|
|
|
@ -15,17 +15,17 @@ import (
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
var recordingData = map[string][]i2ctest.IO{
|
|
|
|
|
"TestCountToPressure": []i2ctest.IO{
|
|
|
|
|
"TestCountToPressure": {
|
|
|
|
|
{Addr: 0x5c, W: []uint8{0xf}, R: []uint8{0xb4}},
|
|
|
|
|
{Addr: 0x5c, W: []uint8{0x10, 0x10}}},
|
|
|
|
|
"TestBasic": []i2ctest.IO{
|
|
|
|
|
"TestBasic": {
|
|
|
|
|
{Addr: 0x5c, W: []uint8{0xf}, R: []uint8{0xb4}},
|
|
|
|
|
{Addr: 0x5c, W: []uint8{0x10, 0x10}}},
|
|
|
|
|
"TestSense": []i2ctest.IO{
|
|
|
|
|
"TestSense": {
|
|
|
|
|
{Addr: 0x5c, W: []uint8{0xf}, R: []uint8{0xb4}},
|
|
|
|
|
{Addr: 0x5c, W: []uint8{0x10, 0x10}},
|
|
|
|
|
{Addr: 0x5c, W: []uint8{0x27}, R: []uint8{0x33, 0xbf, 0x19, 0x34, 0x2f, 0x9}}},
|
|
|
|
|
"TestSenseContinuous": []i2ctest.IO{
|
|
|
|
|
"TestSenseContinuous": {
|
|
|
|
|
{Addr: 0x5c, W: []uint8{0xf}, R: []uint8{0xb4}},
|
|
|
|
|
{Addr: 0x5c, W: []uint8{0x10, 0x10}},
|
|
|
|
|
{Addr: 0x5c, W: []uint8{0x27}, R: []uint8{0x33, 0x72, 0x1a, 0x34, 0x2f, 0x9}},
|
|
|
|
|
@ -38,7 +38,7 @@ var recordingData = map[string][]i2ctest.IO{
|
|
|
|
|
{Addr: 0x5c, W: []uint8{0x27}, R: []uint8{0x33, 0xc9, 0x1a, 0x34, 0x2f, 0x9}},
|
|
|
|
|
{Addr: 0x5c, W: []uint8{0x27}, R: []uint8{0x33, 0xa, 0x1a, 0x34, 0x2f, 0x9}},
|
|
|
|
|
{Addr: 0x5c, W: []uint8{0x27}, R: []uint8{0x33, 0x72, 0x1a, 0x34, 0x2f, 0x9}}},
|
|
|
|
|
"TestCountToTemp": []i2ctest.IO{
|
|
|
|
|
"TestCountToTemp": {
|
|
|
|
|
{Addr: 0x5c, W: []uint8{0xf}, R: []uint8{0xb4}},
|
|
|
|
|
{Addr: 0x5c, W: []uint8{0x10, 0x10}}},
|
|
|
|
|
}
|
|
|
|
|
|