Use slightly harder bias to avoid clipping

This commit is contained in:
Jan Hamal Dvořák 2024-07-17 20:29:35 +02:00
parent dd66571945
commit 34a4df9b1a

View file

@ -128,8 +128,8 @@ static void init_fb()
hw_set_bits(&PIO->input_sync_bypass, 1u << RX_PIN); hw_set_bits(&PIO->input_sync_bypass, 1u << RX_PIN);
gpio_set_input_hysteresis_enabled(RX_PIN, false); gpio_set_input_hysteresis_enabled(RX_PIN, false);
gpio_set_drive_strength(FB_PIN, GPIO_DRIVE_STRENGTH_2MA); gpio_set_drive_strength(FB_PIN, GPIO_DRIVE_STRENGTH_4MA);
gpio_set_slew_rate(FB_PIN, GPIO_SLEW_RATE_FAST); gpio_set_slew_rate(FB_PIN, GPIO_SLEW_RATE_SLOW);
const uint16_t insn[] = { const uint16_t insn[] = {
pio_encode_mov_not(pio_pins, pio_pins) | pio_encode_sideset(1, 1) | pio_encode_mov_not(pio_pins, pio_pins) | pio_encode_sideset(1, 1) |