23 FL_WARN(
"[RX TEST] Testing RX channel with manual GPIO toggle on PIN " << pin_tx);
30 const int num_toggles = 16;
31 const int toggle_delay_us = 1000;
32 const u32 signal_range_max_ns = 2000000;
42 if (!rx_channel->begin(rx_config)) {
43 FL_ERROR(
"[RX TEST]: Failed to begin RX channel");
51 for (
int i = 0; i < num_toggles; i++) {
68 FL_ERROR(
"[RX TEST]: RX channel wait failed (result: " << (
static_cast<int>(wait_result)) <<
")");
69 FL_ERROR(
"[RX TEST]: RX may not be working - check PIN_RX (" << pin_rx <<
") and RMT peripheral");
70 FL_ERROR(
"[RX TEST]: If using non-RMT TX, ensure physical jumper from PIN " << pin_tx <<
" to PIN " << pin_rx);
77 size_t edge_count = rx_channel->getRawEdgeTimes(check_edges, 0);
78 if (edge_count == 0) {
79 FL_ERROR(
"[RX TEST]: wait() succeeded but 0 edges captured - DMA trigger may be misconfigured");
80 FL_ERROR(
"[RX TEST]: Check DMAMUX source number for PIN_RX (" << pin_rx <<
")");
84 FL_WARN(
"[RX TEST] ✓ RX channel captured " << edge_count <<
" edges from " << num_toggles <<
" toggles");
85 FL_WARN(
"[RX TEST] ✓ RX channel is functioning correctly");
void resize(fl::size n) FL_NO_EXCEPT
Delay utilities for FastLED Includes nanosecond-precision delays, cycle counting, and microsecond del...
Centralized logging categories for FastLED hardware interfaces and subsystems.
bool testRxChannel(fl::shared_ptr< fl::RxChannel > rx_channel, int pin_tx, int pin_rx, u32 hz, size_t buffer_size) FL_NO_EXCEPT
Test RX channel with manual GPIO toggle pattern.
u8 u8 fract8 blur_amount FL_NO_EXCEPT
@ Low
Logic low (0V / GND)
@ High
Logic high (3.3V / 5V, platform-dependent)
RxWaitResult
Result codes for RX wait() operations.
@ SUCCESS
Operation completed successfully.
void digitalWrite(int pin, PinValue val) FL_NO_EXCEPT
Write digital value to pin.
@ Output
Digital output (push-pull)
@ Input
Digital input (high impedance)
void pinMode(int pin, PinMode mode) FL_NO_EXCEPT
Set pin mode (input, output, pull-up, pull-down)
void delayMicroseconds(u32 us) FL_NO_EXCEPT
Delay for a given number of microseconds.
Base definition for an LED controller.