26 {
28 FL_WARN(
"SPI device was not initialized!");
30 return;
31 }
32
33
34
35 static const uint8_t lane0[] = {0xFF, 0x00, 0xFF, 0x00, 0xFF, 0x00, 0xFF, 0x00,
36 0xFF, 0x00, 0xFF, 0x00, 0xFF, 0x00, 0xFF, 0x00};
37 static const uint8_t lane1[] = {0xAA, 0x55, 0xAA, 0x00, 0x00, 0x00, 0x00, 0x00,
38 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
39 static const uint8_t lane2[] = {0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80,
40 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
41 static const uint8_t lane3[] = {0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77,
42 0x88, 0x99, 0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0xFF};
43
44
45
50 return;
51 }
52
53
55
56 FL_DBG(
"Data transmitted to 4 lanes");
57
58
60}
fl::Spi spi_device(CLOCK_PIN, pins, fl::spi_output_mode_t::SPI_HW)
void delay(u32 ms, bool run_async=true) FL_NOEXCEPT
Public delay wrapper that keeps bare Arduino delay() preferred after using fl::delay; while still all...
expected< T, E > result
Alias for expected (Rust-style naming)