You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wrote program using hub75 package. but, it didn't light up. So I have tried to fix hub75.
As a result. It light up as expected. And Environmental information is here. -> https://github.com/ehime-iyokan/tinygo_hub75_sample
First, I added a time.sleep(1 * time.Microsecond) after latch-High.
By doing so, the light came on. However, I don't know why, so if you know, please let me know.
Moreover, the red lights are on in different places.
Second, I fixed buffering of red data.
I guess it has to do left-shift first. d.buffer[c][offsetR] = d.buffer[c][offsetR] &^ 1 << bitSelect
-> d.buffer[c][offsetR] &^= 1 << bitSelect
The text was updated successfully, but these errors were encountered:
I added a time.sleep(1 * time.Microsecond) after latch-High. By doing so, the light came on. However, I don't know why
If I figured out why it worked correctly, I'll create a pull request.
@ehime-iyokan
The GPIO of the RP2040 might be too fast. Without adding time.Sleep(), the pulse width is 110ns, which might be too short. With time.Sleep(), it is around 5us.
Including other parts as well, it is better to use delay.Sleep() for microsecond sleeps. I think it would be good if you could create a Pull Request with that change.
I wrote program using hub75 package. but, it didn't light up. So I have tried to fix hub75.
As a result. It light up as expected. And Environmental information is here. -> https://github.com/ehime-iyokan/tinygo_hub75_sample
First, I added a
time.sleep(1 * time.Microsecond)
after latch-High.By doing so, the light came on. However, I don't know why, so if you know, please let me know.
Moreover, the red lights are on in different places.
Second, I fixed buffering of red data.
I guess it has to do left-shift first.
d.buffer[c][offsetR] = d.buffer[c][offsetR] &^ 1 << bitSelect
->
d.buffer[c][offsetR] &^= 1 << bitSelect
The text was updated successfully, but these errors were encountered: