Looking to add a new display - JC3248W535 AXS15231 #848
Replies: 7 comments 9 replies
-
|
Yeah, I have two of these laying around as well. They would make excellent openhasp devices. |
Beta Was this translation helpful? Give feedback.
-
|
Was thinkering this week on this. If it helps anyone to continue use it |
Beta Was this translation helpful? Give feedback.
-
|
I could compile and flash it, but it doesn't appear to work for me. I see the following below. Also serial over usb doesn't work, wifi neither.
|
Beta Was this translation helpful? Give feedback.
-
|
Yeah, I already tried swapping the width and height since I thought perhaps it was writing out of bounds somewhere. But the image I get on the screen is identical as the photo I posted earlier. I tried connecting over putty (tried different baudrates) and the arduino IDE since that auto reconnects. The terminal just sits there, there is no output, I can't input anything either like wifi credentials for example. |
Beta Was this translation helpful? Give feedback.
-
|
I cloned the official openhasp by the way and added your users setup. |
Beta Was this translation helpful? Give feedback.
-
|
I haven't messed with this display in ages (mainly due to it being a pain in the butt) but from what i can see with what you guys are tinkering with i think what you're missing is this display NEEDS the #define CANVAS part of the graphics config too to work correctly. And a Also the touch driver isn't GT911 but the very same AXS15231B as the display as it's a 2 in 1 combo. I may have a look at this further at some point. |
Beta Was this translation helpful? Give feedback.
-
|
I'm in a similar boat - I started playing a couple of weeks ago, and drafted this WIP discussion: Waveshare ESP32-S3-Touch-LCD-3.49 / AXS15231B Hi, I've just picked up a ESP32-S3-Touch-LCD-3.49, which has:
Progress so far... I started out by getting ESPHome up and running, using the following config: esphome:
name: touch349
friendly_name: touch3.49
esp32:
board: esp32-s3-devkitc-1
framework:
type: esp-idf
flash_size: 16MB
variant: ESP32S3
cpu_frequency: 240MHZ
psram:
speed: 80MHz
mode: octal
spi:
type: quad
clk_pin: GPIO10
id: quad_spi
data_pins:
- GPIO11
- GPIO12
- GPIO13
- GPIO14
i2c:
scl: GPIO18
sda: GPIO17
display:
- platform: mipi_spi
model: AXS15231
id: main_display
spi_id: quad_spi
dimensions:
height: 640
width: 176
cs_pin: 9
reset_pin: 21
update_interval: 1s
rotation: 90
lambda: |-
it.printf(20, 70, id(roboto), Color(255, 0, 0), id(ha_time).now().strftime("%I:%M:%S %p").c_str());
touchscreen:
platform: axs15231
id: my_touchscreenI've started hacking together an OpenHasp ini file, and have got something on the screen, but have run into the following issues: ;***************************************************;
; Waveshare ESP32-S3-Touch-LCD-3.49 ;
; - 3.49inch capacitive touch IPS 172×640, 16.7M ;
; - AXS15231B display/ touch controller ;
; https://www.waveshare.com/wiki/ESP32-S3-Touch-LCD-3.49;
;***************************************************;
[env:ws_esp32_s3_touch_lcd_3p49]
extends = arduino_esp32s3_v2, flash_16mb
board = esp32-s3-devkitc-1
board_build.arduino.memory_type = qio_opi
build_type = debug
build_flags =
-D HASP_MODEL="Waveshare ESP32-S3-Touch-LCD-3.49"
${arduino_esp32s3_v2.build_flags}
${esp32s3.ps_ram}
; ${lcd.waveshare_349}
; Bus Settings
-D AXS15231B_DRIVER=1
; Arduino_DataBus* bus = new Arduino_ESP32QSPI(TFT_CS, TFT_SCK, TFT_D0, TFT_D1, TFT_D2, TFT_D3);
; Arduino_GFX* g = new Arduino_AXS15231B(bus, TFT_RST, TFT_ROTATION, TFT_IPS);
; tft = g;
-D TFT_WIDTH=172
-D TFT_HEIGHT=640
-D TFT_CS=9
-D TFT_SCK=10
-D TFT_D0=11
-D TFT_D1=12
-D TFT_D2=13
-D TFT_D3=14
-D TFT_RST=21
-D TFT_ROTATION=0
-D TFT_IPS=0
-D TFT_PREFER_SPEED=80M
-D HASP_USE_ARDUINOGFX=1
-D HASP_USE_QRCODE=0
-D BACKLIGHT_FREQUENCY=1000
-D TOUCH_DRIVER=-1
lib_deps =
${arduino_esp32s3_v2.lib_deps}
${arduinogfx.lib_deps}
The driver looks to be included in ArduinoGfx, so I started down the route of adding code into src\drv\tft\tft_driver_arduinogfx.cpp I tried to bump the version of ArduinoGfx, but haven't got too far. Other findings:
Touch |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Looking add support for the JC3248W535 QSPI display i have here with the AXS15231 controller which is supported by Arduino_GFX.
Touch needs another lib for which bb_captouch works pretty well (with the #ifdef FUTURE flag disabled...apparently it's experimental, works fine for me). I honestly haven't found any other libs that support it.
So yeah just for tips on where to get started on doing so. :)
Beta Was this translation helpful? Give feedback.
All reactions