bigtreetech / CB1

OS System image for CB1
365 stars 61 forks source link

HDMI-Display with SPI-Touch working on CB1? #87

Open JPSolutions112 opened 1 year ago

JPSolutions112 commented 1 year ago

Hello there, is there any way, to get a HDMI Display with SPI-Touch working on a CB1? I have this display (https://www.amazon.de/Elecrow-Aufl%C3%B6sung-Touchscreen-Monitor-Raspberry/dp/B013JECYF2/ref=asc_df_B013JECYF2?tag=bingshoppin0b-21&linkCode=df0&hvadid=80195686177042&hvnetw=o&hvqmt=e&hvbmt=be&hvdev=c&hvlocint=&hvlocphy=&hvtargid=pla-4583795261686830&psc=1) and can see the image of Klipperscreen on my CB1, but the touch function does not work.

Then I additionally connected the SPI Interface of the display to the GPIO-Header of my M4P like this: +-Display--+-M4P/CB1-+ |------------|-------------| | CS | (7) PC7 | | MOSI | (19) PH7 | | MISO | (21) PH8 | | SCK | (23) PH6 | +------------+------------|

In /boot/BoardEnv.txt I added following lines: _# CONFIG FOR ELECROW 5 INCH TFT DISPLAY

overlays=tft35_spi25

hdmi_group=2 hdmi_mode=1 hdmi_mode=87 hdmi_cvt 800 400 60 6 0 0 0 dtparam=spi=on dtparam=i2c_arm=on

dtoverlay=ads7846,cs=1,penirq=25,penirq_pull=2,speed=50000,keep_vrefon=0,swapxy=0,pmax=255,xohms=150,xmin=200,xmax=3900,ymin=200,ymax=3900 dtoverlay=w1-gpio-pullup,gpiopin=4,extpullup=1

But the Touch-Screen does not react. Any ideas what I am missing?

Any help is appreciated! :)

St0rmingBr4in commented 11 months ago

Hi,

We need a device tree overlay for ADS7846 to make this work. Curently it is not implemented here.

I took the time to implement it, you can find the instructions on this repo.

It works great for me ! Let me know if it works for you :)