Skip to content
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

Request support for a large LCD with a resolution of 392x136 from Volkswagen #2563

Open
suwill opened this issue Jan 6, 2025 · 3 comments
Open
Milestone

Comments

@suwill
Copy link

suwill commented Jan 6, 2025

Firstly, thank you to u8g2 for making DIY easier
I got a LCD from the Volkswagen radio, which has high resolution and large size.In China, this screen costs approximately 60 RMB, less than 10 euros, and includes a complete radio.
PixPin_2025-01-06_08-40-12
The definition of GPIO is as follows:
ee299454f886f2ee2c37a49ef044933d
PixPin_2025-01-06_10-05-46

A netizen post an example of C51(q395418298@http://bbs.mydigit.cn/read.php?tid=2537024):

108_2936289_5e37b513e5f4c25
05-33-58-108_2936289_bc279bdd07a9375
C51.zip

I pay for another friend and added it to u8g2 2.27.6. It can be used normally,But now we have lost contact with him.
[email protected]

But now the version of u8g2 has been updated to 2.36.2,
I'm trying to figure out what he did:
PixPin_2025-01-06_09-00-06

I tried to copy some code from 2.27.6 to 2.36.2,Here are some operations I have performed:

//1. Copy the code below to U8g2\src\U8g2lib.h  line 282200
class U8G2_TFT3P3154_392x136_F_4W_SW_SPI : public U8G2 {
  public: U8G2_TFT3P3154_392x136_F_4W_SW_SPI(const u8g2_cb_t *rotation, uint8_t clock, uint8_t data, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8G2() {
    u8g2_Setup_tft3p3154_392x136_noname_f(&u8g2, rotation, u8x8_byte_arduino_4wire_sw_spi, u8x8_gpio_and_delay_arduino);
    u8x8_SetPin_4Wire_SW_SPI(getU8x8(), clock, data, cs, dc, reset);
  }
};
//2. Copy the code below to \U8g2\src\U8x8lib.h line 9678
class U8X8_TFT3P3154_4W_HW_SPI : public U8X8 {
  public: U8X8_TFT3P3154_4W_HW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) :U8X8() {
    u8x8_Setup(getU8x8(), u8x8_d_tft3p3154_392x136_noname, u8x8_cad_011, u8x8_byte_arduino_4wire_sw_spi, u8x8_gpio_and_delay_arduino);
    u8x8_SetPin_4Wire_SW_SPI(getU8x8(), clock, data, cs, dc, reset);
  }
};
//3. Copy the code below to U8g2\src\clib\u8g2.h line 1703
void u8g2_Setup_tft3p3154_392x136_noname_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb);
//4. Copy the code below to U8g2\src\clib\u8g2_d_setup.c line 9255
void u8g2_Setup_tft3p3154_392x136_noname_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb)
{
  uint8_t tile_buf_height;
  uint8_t *buf;
  u8g2_SetupDisplay(u8g2, u8x8_d_tft3p3154_392x136_noname, u8x8_cad_011, byte_cb, gpio_and_delay_cb);
  buf = u8g2_m_48_17_3(&tile_buf_height);
  u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation);
}
//5. Copy the code below to U8g2\src\clib\u8g2_d_setup.c line 1056
uint8_t u8x8_d_tft3p3154_392x136_noname(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr);
//6. Copy u8x8_d_tft3P3154.c to U8g2\src\clib
// The following link

u8x8_d_tft3P3154.zip

but vscode encountered an error during compilation:

w1
w2
w3
wall
ERR

I am not familiar with the C/C++language, perhaps someone can tell me how to fix it and hope that the official can increase support for this screen.
I come from China and not very good at English. Sorry for using translator software,Forgive my poor English.

@suwill
Copy link
Author

suwill commented Jan 6, 2025

some photos
微信图片_20250106113131
微信图片_20250106113124
微信图片_20250106113023

@olikraus
Copy link
Owner

olikraus commented Jan 7, 2025

maybe I find some time to look into this in the future...

@olikraus olikraus added this to the 2.36 milestone Jan 7, 2025
@suwill
Copy link
Author

suwill commented Jan 15, 2025

maybe I find some time to look into this in the future...

thanks for your attention

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants