HD44780: Can't understand how `CreateCharacter` works
Maintainer thường phản hồi trong vòng 3 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 44/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- go
- Lĩnh vực
- embedded-iot
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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 🙏
- Ngôn ngữ chính
- Go
- Star
- 756
- Fork
- 251
- Merge trung bình
- 7 ngày 12 giờ
- Pull request đã merge (30 ngày)
- 8
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của tinygo-org/drivers
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
tinygo-org/drivers#946 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
tinygo-org/drivers#927 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 22/100
tinygo-org/drivers#901 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 32/100
tinygo-org/drivers#886 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
tinygo-org/drivers#877 ·
Maintainer thường phản hồi trong vòng 3 ngày
Tất cả issue của tinygo-org/drivers
Issue tương tự
-
release
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 75/100
github/gh-aw-mcpg#17603 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
avr: SPI Mode2 runs as mode 1Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
tinygo-org/tinygo#6727 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
help wanted
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 94/100
oras-project/oras-go#1827 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
docs: database/sql Sessions example never commits its batch, and its "Full Example" link is a 404Đang mởdocumentation
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
ClickHouse/clickhouse-go#2185 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug needs triage receiver/podman
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
open-telemetry/opentelemetry-collector-contrib#53700 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày