|
|
|
|
@ -47,8 +47,8 @@ func TestNew_3(t *testing.T) {
|
|
|
|
|
g := gpiostreamtest.PinOutPlayback{
|
|
|
|
|
N: "Yo",
|
|
|
|
|
Ops: []gpiostream.Stream{
|
|
|
|
|
&gpiostream.BitStreamMSB{
|
|
|
|
|
Bits: gpiostream.BitsMSB{
|
|
|
|
|
&gpiostream.BitStream{
|
|
|
|
|
Bits: []byte{
|
|
|
|
|
0x92, 0x49, 0x24, 0x92, 0x49, 0x24, 0x92, 0x49, 0x24, 0x92, 0x49, 0x24, 0x92, 0x49, 0x24, 0x92,
|
|
|
|
|
0x49, 0x24, 0x92, 0x49, 0x24, 0x92, 0x49, 0x24, 0x92, 0x49, 0x24, 0x92, 0x49, 0x24, 0x92, 0x49,
|
|
|
|
|
0x24, 0x92, 0x49, 0x24, 0x92, 0x49, 0x24, 0x92, 0x49, 0x24, 0x92, 0x49, 0x24, 0x92, 0x49, 0x24,
|
|
|
|
|
@ -57,6 +57,7 @@ func TestNew_3(t *testing.T) {
|
|
|
|
|
0x24, 0x92, 0x49, 0x24, 0x92, 0x49, 0x24, 0x92, 0x49, 0x24,
|
|
|
|
|
},
|
|
|
|
|
Res: 2500 * time.Nanosecond,
|
|
|
|
|
LSBF: false,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
@ -94,8 +95,8 @@ func TestNew_fail(t *testing.T) {
|
|
|
|
|
func TestDraw_NRGBA_3(t *testing.T) {
|
|
|
|
|
g := gpiostreamtest.PinOutPlayback{
|
|
|
|
|
Ops: []gpiostream.Stream{
|
|
|
|
|
&gpiostream.BitStreamMSB{
|
|
|
|
|
Bits: gpiostream.BitsMSB{
|
|
|
|
|
&gpiostream.BitStream{
|
|
|
|
|
Bits: []byte{
|
|
|
|
|
0x92, 0x49, 0x24, 0x92, 0x49, 0x24, 0x92, 0x49, 0x24, 0x92, 0x49, 0x24, 0x92, 0x49, 0x24, 0xdb,
|
|
|
|
|
0x6d, 0xb6, 0xdb, 0x6d, 0xb6, 0x92, 0x49, 0x24, 0x92, 0x49, 0x24, 0xdb, 0x6d, 0xb6, 0x92, 0x49,
|
|
|
|
|
0x24, 0xdb, 0x6d, 0xb6, 0x92, 0x49, 0x24, 0xdb, 0x6d, 0xb6, 0x92, 0x49, 0x24, 0x92, 0x49, 0x24,
|
|
|
|
|
@ -104,6 +105,7 @@ func TestDraw_NRGBA_3(t *testing.T) {
|
|
|
|
|
0xb6, 0x92, 0x49, 0xb6, 0x92, 0x49, 0xb4, 0x92, 0x4d, 0x24,
|
|
|
|
|
},
|
|
|
|
|
Res: 2500 * time.Nanosecond,
|
|
|
|
|
LSBF: false,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
@ -119,8 +121,8 @@ func TestDraw_NRGBA_3(t *testing.T) {
|
|
|
|
|
func TestDraw_RGBA_3(t *testing.T) {
|
|
|
|
|
g := gpiostreamtest.PinOutPlayback{
|
|
|
|
|
Ops: []gpiostream.Stream{
|
|
|
|
|
&gpiostream.BitStreamMSB{
|
|
|
|
|
Bits: gpiostream.BitsMSB{
|
|
|
|
|
&gpiostream.BitStream{
|
|
|
|
|
Bits: []byte{
|
|
|
|
|
0x92, 0x49, 0x24, 0x92, 0x49, 0x24, 0x92, 0x49, 0x24, 0x92, 0x49, 0x24, 0x92, 0x49, 0x24, 0xdb,
|
|
|
|
|
0x6d, 0xb6, 0xdb, 0x6d, 0xb6, 0x92, 0x49, 0x24, 0x92, 0x49, 0x24, 0xdb, 0x6d, 0xb6, 0x92, 0x49,
|
|
|
|
|
0x24, 0xdb, 0x6d, 0xb6, 0x92, 0x49, 0x24, 0xdb, 0x6d, 0xb6, 0x92, 0x49, 0x24, 0x92, 0x49, 0x24,
|
|
|
|
|
@ -129,6 +131,7 @@ func TestDraw_RGBA_3(t *testing.T) {
|
|
|
|
|
0xa6, 0xda, 0x49, 0xb6, 0xd3, 0x4d, 0x34, 0xdb, 0x49, 0x36,
|
|
|
|
|
},
|
|
|
|
|
Res: 2500 * time.Nanosecond,
|
|
|
|
|
LSBF: false,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
@ -144,8 +147,8 @@ func TestDraw_RGBA_3(t *testing.T) {
|
|
|
|
|
func TestDraw_RGBA_4(t *testing.T) {
|
|
|
|
|
g := gpiostreamtest.PinOutPlayback{
|
|
|
|
|
Ops: []gpiostream.Stream{
|
|
|
|
|
&gpiostream.BitStreamMSB{
|
|
|
|
|
Bits: gpiostream.BitsMSB{
|
|
|
|
|
&gpiostream.BitStream{
|
|
|
|
|
Bits: []byte{
|
|
|
|
|
0x92, 0x49, 0x24, 0x92, 0x49, 0x24, 0x92, 0x49, 0x24, 0x92, 0x49, 0x24, 0x92, 0x49, 0x24, 0x92,
|
|
|
|
|
0x49, 0x24, 0xdb, 0x6d, 0xb6, 0xdb, 0x6d, 0xb6, 0xdb, 0x6d, 0xb6, 0x92, 0x49, 0x24, 0x92, 0x49,
|
|
|
|
|
0x24, 0xdb, 0x6d, 0xb6, 0xdb, 0x6d, 0xb6, 0x92, 0x49, 0x24, 0xdb, 0x6d, 0xb6, 0xdb, 0x6d, 0xb6,
|
|
|
|
|
@ -156,6 +159,7 @@ func TestDraw_RGBA_4(t *testing.T) {
|
|
|
|
|
0x4d, 0x34, 0xdb, 0x49, 0x36, 0x92, 0x4d, 0x26,
|
|
|
|
|
},
|
|
|
|
|
Res: 2500 * time.Nanosecond,
|
|
|
|
|
LSBF: false,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
@ -171,8 +175,8 @@ func TestDraw_RGBA_4(t *testing.T) {
|
|
|
|
|
func TestDraw_Limits(t *testing.T) {
|
|
|
|
|
g := gpiostreamtest.PinOutPlayback{
|
|
|
|
|
Ops: []gpiostream.Stream{
|
|
|
|
|
&gpiostream.BitStreamMSB{
|
|
|
|
|
Bits: gpiostream.BitsMSB{
|
|
|
|
|
&gpiostream.BitStream{
|
|
|
|
|
Bits: []byte{
|
|
|
|
|
0x92, 0x49, 0x24, 0x92, 0x49, 0x24, 0x92, 0x49, 0x24, 0x92, 0x49, 0x24, 0x92, 0x49, 0x24, 0xdb,
|
|
|
|
|
0x6d, 0xb6, 0xdb, 0x6d, 0xb6, 0x92, 0x49, 0x24, 0x92, 0x49, 0x24, 0xdb, 0x6d, 0xb6, 0x92, 0x49,
|
|
|
|
|
0x24, 0xdb, 0x6d, 0xb6, 0x92, 0x49, 0x24, 0xdb, 0x6d, 0xb6, 0x92, 0x49, 0x24, 0x92, 0x49, 0x24,
|
|
|
|
|
@ -181,6 +185,7 @@ func TestDraw_Limits(t *testing.T) {
|
|
|
|
|
0xa6, 0xda, 0x49, 0xb6, 0xd3, 0x4d, 0x34, 0xdb, 0x49, 0x36,
|
|
|
|
|
},
|
|
|
|
|
Res: 2500 * time.Nanosecond,
|
|
|
|
|
LSBF: false,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
@ -196,8 +201,8 @@ func TestDraw_Limits(t *testing.T) {
|
|
|
|
|
func TestWrite_3(t *testing.T) {
|
|
|
|
|
g := gpiostreamtest.PinOutPlayback{
|
|
|
|
|
Ops: []gpiostream.Stream{
|
|
|
|
|
&gpiostream.BitStreamMSB{
|
|
|
|
|
Bits: gpiostream.BitsMSB{
|
|
|
|
|
&gpiostream.BitStream{
|
|
|
|
|
Bits: []byte{
|
|
|
|
|
0x92, 0x49, 0x24, 0x92, 0x49, 0x24, 0x92, 0x49, 0x24, 0x92, 0x49, 0x24, 0x92, 0x49, 0x24, 0xdb,
|
|
|
|
|
0x6d, 0xb6, 0xdb, 0x6d, 0xb6, 0x92, 0x49, 0x24, 0x92, 0x49, 0x24, 0xdb, 0x6d, 0xb6, 0x92, 0x49,
|
|
|
|
|
0x24, 0xdb, 0x6d, 0xb6, 0x92, 0x49, 0x24, 0xdb, 0x6d, 0xb6, 0x92, 0x49, 0x24, 0x92, 0x49, 0x24,
|
|
|
|
|
@ -206,6 +211,7 @@ func TestWrite_3(t *testing.T) {
|
|
|
|
|
0xa6, 0x92, 0x49, 0xb6, 0x92, 0x49, 0xb4, 0x92, 0x4d, 0x24,
|
|
|
|
|
},
|
|
|
|
|
Res: 2500 * time.Nanosecond,
|
|
|
|
|
LSBF: false,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
|