| ... | @@ -158,7 +158,7 @@ void onSimpleUpdate() override |
... | @@ -158,7 +158,7 @@ void onSimpleUpdate() override |
|
|
{
|
|
{
|
|
|
splislave.bus.configure(spislave.config); // Configure the bus before accessing it
|
|
splislave.bus.configure(spislave.config); // Configure the bus before accessing it
|
|
|
|
|
|
|
|
uint9_t reg = 0x42 | 0x80; // Register address. Most significant bit is set to 1 to signal a read operation
|
|
uint8_t reg = 0x42 | 0x80; // Register address. Most significant bit is set to 1 to signal a read operation
|
|
|
|
|
|
|
|
uint8_t buf[2];
|
|
uint8_t buf[2];
|
|
|
bus.select(spislave.cs); // Assert chip select
|
|
bus.select(spislave.cs); // Assert chip select
|
| ... | | ... | |