Breazile / MandoPuter

Electronics to drive a Mandalorian gauntlet
MIT License
41 stars 9 forks source link

driver for ST7735 #9

Open Rodnehh opened 1 year ago

Rodnehh commented 1 year ago

Hey Breazile, first of all; thanks for your work, from what i've seen it looks awesome!

I have a question for making my own mandoputer. I'm trying to run it on a "Wemos Lolin s3 pro" with a breakout shield with SD (ST7735) without sd connection. I happened to have these around and wanted to see if i could get it to work. Unfortunately i havent been able to get it running just yet. My screen is connected correctly, but it doesnt show anything. Could this be driver related? I'm not very familiar with microcontrollers.

Thanks in advance!

Breazile commented 1 year ago

I'll put all of the changes in the main code base so they will be there on future updates

Breazile commented 1 year ago

Turns out I have the Adafruit 1.8" display here. I'd like to check if your display has the 7789 chip or the 7735R chip

Rodnehh commented 1 year ago

i tried both and with the changes made to the width and height it didnt really matter haha.

This is the display i have i believe it is the 7735 chip. Not R or S.

Breazile commented 1 year ago

https://user-images.githubusercontent.com/59380049/228089572-45181206-ec74-4647-bddf-f2f4296735b6.mp4

This is with the Adafruit 1.8: display with the 7735R chip. I don't see the flashing, so I would guess it is an issue with your micro board or the display.

Rodnehh commented 1 year ago

is your screen an Oled or tft?

Breazile commented 1 year ago

tft

https://www.adafruit.com/product/358

Breazile commented 1 year ago

I had to change the code though to this:

elif DISPLAY == "1.8": from adafruit_st7735r import ST7735R

need to reverse the color bytes

TEXT_COLOR = ((TEXT_COLOR & 0xFF0000) >> 16) + (TEXT_COLOR & 0x00FF00) + ((TEXT_COLOR & 0x0000FF) << 16)
display = ST7735R(display_bus, rotation=180, width=128, height=160, brightness=100)
font = bitmap_font.load_font("mandalor82.bdf")  # 82 pixel tall bitmap font
offset      = 0
Rodnehh commented 1 year ago

strange. not sure why my display is acting up then..

Rodnehh commented 1 year ago

i have other displays on the way (ST7789). when i have that one i might see if that one flickers as well.

Breazile commented 1 year ago

My guess would be the micro controller, but let's see what happens with the new display. Let me know if you need help getting that running too once it shows up.

Rodnehh commented 1 year ago

I will, thanks for all the help Jon!