HD44780: Can't understand how `CreateCharacter` works
メンテナーはふだん 3 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 44/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- go
- 領域
- embedded-iot
調査の方向性
Start by reading the HD44780 driver’s CreateCharacter, Write, and Display entry points to understand how custom character slots are addressed. Reproduce the reported behavior with the two examples that define and display the same character at slots 0x0 and 0x1; done means both slots display the defined character correctly, or the issue explains the expected slot usage. The issue names no test or file path.
索引モデルが issue の本文から書いたものです。
説明
Hello there,
Thanks for this awesome library, I have a project for using an HD44780 LCD display with my pico and it fits perfectly.
For the need of my project, I need to display 4 custom characters to the first 2x2 LCD matrix
So (0,0), (1,0), (0,1) and (1,1).
I've defined my custom characters to be like this
lcd.CreateCharacter(0x0, []byte{0x00, 0x07, 0x07, 0x18, 0x18, 0x18, 0x18, 0x19})
lcd.CreateCharacter(0x1, []byte{0x00, 0x1C, 0x1C, 0x03, 0x03, 0x0F, 0x0F, 0x13})
lcd.CreateCharacter(0x2, []byte{0x19, 0x1E, 0x1E, 0x18, 0x18, 0x07, 0x07, 0x00})
lcd.CreateCharacter(0x3, []byte{0x13, 0x03, 0x03, 0x03, 0x03, 0x1C, 0x1C, 0x00})
and I print them doing
lcd.SetCursor(0, 0)
lcd.Write([]byte{0x0})
lcd.Display()
lcd.SetCursor(1, 0)
lcd.Write([]byte{0x1})
lcd.Display()
lcd.SetCursor(0, 1)
lcd.Write([]byte{0x2})
lcd.Display()
lcd.SetCursor(1, 1)
lcd.Write([]byte{0x3})
lcd.Display()
And when I run it, it show some weird stuff, like all the "custom" chars are merged or something.
I can't figure how it is possible, it seems like when I try to add offset to custom chars the result changes...
I think I might does not understand how it works.
Note that If i do
lcd.CreateCharacter(0x0, []byte{0x00, 0x07, 0x07, 0x18, 0x18, 0x18, 0x18, 0x19})
lcd.Write([]byte{0x0})
lcd.Display()
it works fine.
But using this (so the exact same character but in 0x1 memory place)
lcd.CreateCharacter(0x1, []byte{0x00, 0x07, 0x07, 0x18, 0x18, 0x18, 0x18, 0x19})
lcd.Write([]byte{0x1})
lcd.Display()
then the character is broken...
If anyone could explain to me how it's meant to be used it will be very nice 🙏
- 主要言語
- Go
- スター
- 756
- フォーク
- 251
- 平均マージ
- 7日 12時間
- マージ済み PR(30日)
- 8
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
tinygo-org/drivers のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
tinygo-org/drivers#946 ·
メンテナーはふだん 3 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
tinygo-org/drivers#927 ·
メンテナーはふだん 3 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 22/100
tinygo-org/drivers#901 ·
メンテナーはふだん 3 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 32/100
tinygo-org/drivers#886 · コメント 1 件 ·
メンテナーはふだん 3 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
tinygo-org/drivers#877 ·
メンテナーはふだん 3 日以内に返信
tinygo-org/drivers の issue をすべて見る
似ている issue
-
release
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
github/gh-aw-mcpg#17603 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
tinygo-org/tinygo#6727 ·
メンテナーはふだん 1 日以内に返信
-
help wanted
難易度 1/5 1時間未満 初心者へのやさしさ 94/100
oras-project/oras-go#1827 ·
メンテナーはふだん 1 日以内に返信
-
docs: database/sql Sessions example never commits its batch, and its "Full Example" link is a 404オープンdocumentation
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
ClickHouse/clickhouse-go#2185 ·
メンテナーはふだん 1 日以内に返信
-
bug needs triage receiver/podman
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
open-telemetry/opentelemetry-collector-contrib#53700 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信