Make the specified frequency for busio.I2C be a ceiling, not an approximation

Offen
#11,080 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
48/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Ruhig
Tech-Stack
c
Bereich
embedded-iot

Rechercherichtung

Start by reading the busio.I2C frequency-setting implementation and its documentation; the issue does not name specific files or tests. Compare the requested frequency with the actual rate produced, and check related issue #11079 for context. Done means the actual I2C rate never exceeds the requested frequency and the documentation reflects that behavior.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

busio

Motivated by #11079

Fix I2C frequency setting so that the given frequency is a ceiling for the actual rate. Don't allow the frequency to be higher. The documentation current says it could be higher or lower, but this causes problems when a higher rate is too high for the attached peripheral.

This is less critical than #11079, because allowed I2C frequencies are more standardized, but I think it's still a good idea.

Vorherrschende Sprache
C
Sterne
4.6k
Forks
1.4k
Ø Merge
1 T. 7 Std.
Gemergte PRs (30 T.)
187

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus adafruit/circuitpython

Alle Issues in adafruit/circuitpython

Ähnliche Issues

Weitere Issues zu C

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.