Update misc.c
This commit is contained in:
1 parent
528a8f698f
commit
eb23f0e1cd
1 file changed
+6
@@ -52,7 +52,10 @@ void finish_pins_except_leds() {
|
||||
}
|
||||
|
||||
void finish_pins_leds() {
|
||||
if (!is_tiny())
|
||||
{
|
||||
gpio_disable_input_output(led_pin());
|
||||
}
|
||||
gpio_disable_input_output(pwr_pin());
|
||||
}
|
||||
|
||||
@@ -119,8 +122,11 @@ void put_pixel(uint32_t pixel_grb)
|
||||
pio_sm_put_blocking(pio0, 3, pixel_grb << 8u);
|
||||
sleep_us(50);
|
||||
pio_sm_set_enabled(pio0, 3, false);
|
||||
if (!is_tiny())
|
||||
{
|
||||
gpio_init(led_pin());
|
||||
}
|
||||
}
|
||||
|
||||
void gpio_disable_input_output(int pin)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user