Not all boards have NINA_SPI machine constants

オープン
#836 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
58/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
go
領域
embedded-iot

調査の方向性

Read wifinina/wifinina.go around line 380, where the driver uses machine.NINA_SPI, and inspect how w.cfg.Spi is configured. Check related driver tests or examples for board SPI setup. Done means the driver uses its configured SPI interface so boards without a machine.NINA_SPI constant can use the co-processor.

索引モデルが issue の本文から書いたものです。

説明

https://github.com/tinygo-org/drivers/blob/f931ad44fb97bbeff7f5c4fb5dca80ce090c7da5/wifinina/wifinina.go#L380

Boards that don't have NINA_SPI constants cannot use the co-processor as machine.NINA_SPI is hard coded into the driver.

I was able to add the constants for my feather-nrf52840-sense to get this working but I expect the correct place to resolve this would be in the driver itself, possibly by chaning ln380 to:

spi := w.cfg.Spi
主要言語
Go
スター
756
フォーク
251
平均マージ
7日 12時間
マージ済み PR(30日)
8

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

tinygo-org/drivers のほかの issue

tinygo-org/drivers の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。