-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to add a screen? #6
Comments
Also, if you don't want to add a driver it might be possible to edit the pi image to mirror HDMI to this LCD: |
For the 256x256 lcd, scaling would probably look awful because the fonts and picture are designed to work in 128x64. However, maybe by modifying the code it could be possible to use a portion of the 128x64 display, leaving the remaining as black. |
Ali express is not so easy with the china situation. Yes it's cheap but maybe I'll see it in 2-3 months :( Since I've already spent the $17 + $5 + $3 it would be nice if it could work (real trezor is ~$50). I definitely don't have the wherewithal to write the driver but if I could figure out how the pi kernel and extra software is built I could compile the program and just load ST7789 module from the kernel. This build in docker and yocto is very new to me. Updating slow shouldn't be an issue and the HDMI can be marked to be always on as he said with hdmi_force_hotplug=1. Unless there is some other reason it doesn't work. |
I would like to know the same, I have a 1.3" 240x240 SPI Display (https://www.waveshare.com/1.3inch-lcd-hat.htm) |
I can prepare a sample that stimulate only the oled so that you can modify/compile/test it directly without docker and the whole build system. |
Absolutely. That would be soo highly appreciated, I already found drivers and code for the chipset display board I'm using and it should be a good thing for me to implement. |
Also, thanks. I was going to test the kernel driver on regular raspbian and see if it all worked with hdmi unplugged as a way to bootleg it and check CPU load/etc. This seems better. BTW: I think the code for the LCD control was here: https://github.com/heneault/trezor-firmware/tree/pitrezor/legacy/emulator/pizero |
ok. I will prepare for next week |
I added a sample that test my oled driver. It just initialize the oled and display the trezor logo on it. I tested it on raspios buster lite version but should work with other flavor of raspios too. Here is the instruction to play with it:
To support a new oled device, you will have to modify the oled_drivers.c file (and add a new entry in the oled_drivers.h) . Don't modify the size of the buffer (128x64) in test oled.c . It must remains like this to be aligned with the original trezor firmware. You will have to do the manipulation in oled_drivers.c only. I suggest that you begin by finding a demo program that show something on your oled. Then you should be able to migrate the spi/i2c commands used to the oled_drivers.file structure. |
Hello, Okay? Were you able to resolve the issue? I really have a problem. |
Does this project work with |
I think the SD1306 should work with the proper setting. Check if it is properly soldered and if you soldered it to the proper pins |
@heneault I'm a little confused, I've tried everything possible but it doesn't work. may the problem be that the screen is blue-black? does this project support other colors on screen? |
Do you which i2c address it uses with the arduino ? Do you have a link to manufacturer ? |
The I2C adress is 0x3C I buyed the screen from robolinkmarket.com (it's a turkish electronic parts seller) Information about this product:
|
Everything look good. Can you double check if it is connected like the diagram on pitrezor.com ? Maybe you can test on another pi zero if possible ? |
Hi, I've got the same problem. I set display OLED_ADAFRUIT_I2C_128x64 = 1 I soldered it twice with two sets of wires and also replaced the display, because I thought it was broken. Edit: Oh, forget about this, I connected Ground to the wrong pin! Still, it would be useful information for some, that you need to chose the adafruit OLED in the config if you are using an SSD1306. |
@Ph0rk0z did you have any luck with the ST7789 driver? |
I have this working now with ST7789, basically mirroring the HDMI, so should easily be applicable to a range of other screens too. Will get it all done in a yocto friendly way and bring a PR in the next little while. |
Looking for it with impatience |
Are you able to share this? |
The PR is there. You can go to 3diteration's repo, he has all the images there ready to put on sdcard. |
Is there any way I can enable the RCA output? to connect to an old TV or an RCA screen from a car reversing camera |
The OLED recommended is over $32 at this stage. I bought a 256x256 SPi with identical footprint. How can I compile in support for it? The display can just be scaled, could it not?
It's this one: https://www.adafruit.com/product/4506
The text was updated successfully, but these errors were encountered: