ws2812: PIO on the rp2040 breaks `WriteByte` method

Aperta
#886 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 3 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
32/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
go
Ambito
embedded-iot

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Go
Stelle
756
Fork
251
Merge medio
7g 12h
PR unite (30g)
8

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di tinygo-org/drivers

Tutte le issue di tinygo-org/drivers

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.