mirror of https://github.com/periph/devices
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
164 lines
6.9 KiB
Go
164 lines
6.9 KiB
Go
// Copyright 2025 The Periph Authors. All rights reserved.
|
|
// Use of this source code is governed under the Apache License, Version 2.0
|
|
// that can be found in the LICENSE file.
|
|
|
|
package aip31068_test
|
|
|
|
import (
|
|
"periph.io/x/conn/v3/i2c/i2ctest"
|
|
)
|
|
|
|
// Auto-Generated by i2ctest.BusTest
|
|
|
|
var recordingData = map[string][]i2ctest.IO{
|
|
"TestBacklights": {
|
|
{Addr: 0x60, W: []uint8{0x0, 0x81}},
|
|
{Addr: 0x60, W: []uint8{0x1, 0x5}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0x28}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0xc}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0x1}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0x2}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0x6}},
|
|
{Addr: 0x60, W: []uint8{0x8, 0x15}},
|
|
{Addr: 0x60, W: []uint8{0x4, 0xff}},
|
|
{Addr: 0x60, W: []uint8{0x8, 0x20}},
|
|
{Addr: 0x60, W: []uint8{0x8, 0x4}},
|
|
{Addr: 0x60, W: []uint8{0x8, 0x1}},
|
|
{Addr: 0x60, W: []uint8{0x8, 0x0}},
|
|
{Addr: 0x60, W: []uint8{0x2, 0x1}},
|
|
{Addr: 0x60, W: []uint8{0x3, 0x1}},
|
|
{Addr: 0x60, W: []uint8{0x4, 0x1}},
|
|
{Addr: 0x60, W: []uint8{0x8, 0x2a}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0x1}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0x8}},
|
|
{Addr: 0x60, W: []uint8{0x8, 0x0}}},
|
|
"TestBasic": {
|
|
{Addr: 0x60, W: []uint8{0x0, 0x81}},
|
|
{Addr: 0x60, W: []uint8{0x1, 0x5}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0x28}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0xc}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0x1}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0x2}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0x6}},
|
|
{Addr: 0x60, W: []uint8{0x8, 0x15}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0x1}},
|
|
{Addr: 0x60, W: []uint8{0x2, 0xff}},
|
|
{Addr: 0x60, W: []uint8{0x3, 0xff}},
|
|
{Addr: 0x60, W: []uint8{0x4, 0xff}},
|
|
{Addr: 0x60, W: []uint8{0x8, 0x2a}},
|
|
{Addr: 0x3e, W: []uint8{0x40, 0x61, 0x69, 0x70, 0x33, 0x31, 0x30, 0x36, 0x38}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0x1}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0x8}},
|
|
{Addr: 0x60, W: []uint8{0x8, 0x0}}},
|
|
"TestComplete": {
|
|
{Addr: 0x60, W: []uint8{0x0, 0x81}},
|
|
{Addr: 0x60, W: []uint8{0x1, 0x5}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0x28}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0xc}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0x1}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0x2}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0x6}},
|
|
{Addr: 0x60, W: []uint8{0x8, 0x15}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0xc}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0x1}},
|
|
{Addr: 0x3e, W: []uint8{0x40, 0x61, 0x69, 0x70, 0x33, 0x31, 0x30, 0x36, 0x38, 0x20, 0x52, 0x6f, 0x77, 0x73, 0x3a, 0x20, 0x32, 0x20, 0x43, 0x6f, 0x6c, 0x73, 0x3a, 0x20, 0x31, 0x36}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0x1}},
|
|
{Addr: 0x3e, W: []uint8{0x40, 0x41, 0x75, 0x74, 0x6f, 0x20, 0x53, 0x63, 0x72, 0x6f, 0x6c, 0x6c, 0x20, 0x54, 0x65, 0x73, 0x74}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0x80}},
|
|
{Addr: 0x3e, W: []uint8{0x40, 0x41}},
|
|
{Addr: 0x3e, W: []uint8{0x40, 0x42}},
|
|
{Addr: 0x3e, W: []uint8{0x40, 0x43}},
|
|
{Addr: 0x3e, W: []uint8{0x40, 0x44}},
|
|
{Addr: 0x3e, W: []uint8{0x40, 0x45}},
|
|
{Addr: 0x3e, W: []uint8{0x40, 0x20}},
|
|
{Addr: 0x3e, W: []uint8{0x40, 0x47}},
|
|
{Addr: 0x3e, W: []uint8{0x40, 0x48}},
|
|
{Addr: 0x3e, W: []uint8{0x40, 0x49}},
|
|
{Addr: 0x3e, W: []uint8{0x40, 0x4a}},
|
|
{Addr: 0x3e, W: []uint8{0x40, 0x20}},
|
|
{Addr: 0x3e, W: []uint8{0x40, 0x4c}},
|
|
{Addr: 0x3e, W: []uint8{0x40, 0x4d}},
|
|
{Addr: 0x3e, W: []uint8{0x40, 0x4e}},
|
|
{Addr: 0x3e, W: []uint8{0x40, 0x4f}},
|
|
{Addr: 0x3e, W: []uint8{0x40, 0x20}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0xc0}},
|
|
{Addr: 0x3e, W: []uint8{0x40, 0x41}},
|
|
{Addr: 0x3e, W: []uint8{0x40, 0x42}},
|
|
{Addr: 0x3e, W: []uint8{0x40, 0x43}},
|
|
{Addr: 0x3e, W: []uint8{0x40, 0x44}},
|
|
{Addr: 0x3e, W: []uint8{0x40, 0x45}},
|
|
{Addr: 0x3e, W: []uint8{0x40, 0x20}},
|
|
{Addr: 0x3e, W: []uint8{0x40, 0x47}},
|
|
{Addr: 0x3e, W: []uint8{0x40, 0x48}},
|
|
{Addr: 0x3e, W: []uint8{0x40, 0x49}},
|
|
{Addr: 0x3e, W: []uint8{0x40, 0x4a}},
|
|
{Addr: 0x3e, W: []uint8{0x40, 0x20}},
|
|
{Addr: 0x3e, W: []uint8{0x40, 0x4c}},
|
|
{Addr: 0x3e, W: []uint8{0x40, 0x4d}},
|
|
{Addr: 0x3e, W: []uint8{0x40, 0x4e}},
|
|
{Addr: 0x3e, W: []uint8{0x40, 0x4f}},
|
|
{Addr: 0x3e, W: []uint8{0x40, 0x20}},
|
|
{Addr: 0x3e, W: []uint8{0x40, 0x61, 0x75, 0x74, 0x6f, 0x20, 0x73, 0x63, 0x72, 0x6f, 0x6c, 0x6c, 0x20, 0x68, 0x61, 0x70, 0x70, 0x65, 0x6e}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0x1}},
|
|
{Addr: 0x3e, W: []uint8{0x40, 0x41, 0x62, 0x73, 0x6f, 0x6c, 0x75, 0x74, 0x65, 0x20, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0x1}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0x80}},
|
|
{Addr: 0x3e, W: []uint8{0x40, 0x28, 0x31, 0x2c, 0x31, 0x29}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0xc1}},
|
|
{Addr: 0x3e, W: []uint8{0x40, 0x28, 0x32, 0x2c, 0x32, 0x29}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0x1}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0x80}},
|
|
{Addr: 0x3e, W: []uint8{0x40, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x3a, 0x20, 0x4f, 0x66, 0x66}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0xc}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0xc}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0x1}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0x80}},
|
|
{Addr: 0x3e, W: []uint8{0x40, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x3a, 0x20, 0x55, 0x6e, 0x64, 0x65, 0x72, 0x6c, 0x69, 0x6e, 0x65}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0xe}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0xc}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0x1}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0x80}},
|
|
{Addr: 0x3e, W: []uint8{0x40, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x3a, 0x20, 0x42, 0x6c, 0x6f, 0x63, 0x6b}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0xd}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0xc}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0x1}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0x80}},
|
|
{Addr: 0x3e, W: []uint8{0x40, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x3a, 0x20, 0x42, 0x6c, 0x69, 0x6e, 0x6b}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0xd}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0xc}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0x1}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0x1}},
|
|
{Addr: 0x3e, W: []uint8{0x40, 0x54, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x20, 0x3e}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0x14}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0x14}},
|
|
{Addr: 0x3e, W: []uint8{0x40, 0x30}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0x10}},
|
|
{Addr: 0x3e, W: []uint8{0x40, 0x31}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0x10}},
|
|
{Addr: 0x3e, W: []uint8{0x40, 0x32}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0x10}},
|
|
{Addr: 0x3e, W: []uint8{0x40, 0x33}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0x10}},
|
|
{Addr: 0x3e, W: []uint8{0x40, 0x34}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0x10}},
|
|
{Addr: 0x3e, W: []uint8{0x40, 0x35}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0x10}},
|
|
{Addr: 0x3e, W: []uint8{0x40, 0x36}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0x10}},
|
|
{Addr: 0x3e, W: []uint8{0x40, 0x37}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0x10}},
|
|
{Addr: 0x3e, W: []uint8{0x40, 0x38}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0x10}},
|
|
{Addr: 0x3e, W: []uint8{0x40, 0x39}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0x10}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0x1}},
|
|
{Addr: 0x3e, W: []uint8{0x40, 0x53, 0x65, 0x74, 0x20, 0x64, 0x65, 0x76, 0x20, 0x6f, 0x66, 0x66}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0x8}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0xc}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0x1}},
|
|
{Addr: 0x3e, W: []uint8{0x40, 0x53, 0x65, 0x74, 0x20, 0x64, 0x65, 0x76, 0x20, 0x6f, 0x6e}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0x1}},
|
|
{Addr: 0x3e, W: []uint8{0x0, 0x8}},
|
|
{Addr: 0x60, W: []uint8{0x8, 0x0}}},
|
|
}
|