ws2812: PIO on the rp2040 breaks `WriteByte` method

Abierto
#886 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 3 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
32/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
go
Área
embedded-iot

Línea de trabajo

Start with the WS2812 driver as changed by PR 851, and find where it now routes writes through the PIO driver on the RP2040 and where WriteByte is affected. The issue proposes either a separate NewPIOWS2812 constructor or keeping bit-banging as the default, so first settle which behaviour maintainers want, since that decision is still open. Done means WriteByte works on the RP2040 again and the chosen constructor or default is documented and tested on hardware.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

https://github.com/tinygo-org/drivers/pull/851 (@gandarez) changed the WS2812 driver to transparently use the PIO driver. Unfortunately, this doesn't work with the WriteByte method that I'm using: it breaks this usage.

My suggestion would be to not switch to PIO transparently but instead have a separate constructor (NewPIOWS2812 perhaps?) that explicitly uses PIO instead of bitbanging.

Lenguaje dominante
Go
Estrellas
756
Forks
251
Merge medio
7 d 12 h
PR fusionados (30 d)
8

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de tinygo-org/drivers

Todos los issues de tinygo-org/drivers

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.