cancel
Showing results for 
Search instead for 
Did you mean: 

TFT LCD touch screen mapping by external keypad

Tran Minh Cong
Associate II
Posted on July 12, 2018 at 07:02

Dear every body,

I'm doing project about lcd tft 7inch 800x480 and stm32f746.

Currently, i want use external keypad (or external button), not use touch screen pannel.

Example: 

http://hshop.vn/products/ban-phim-ma-tran-mem-4x4

 

I have 1 button on LCD:

// { BUTTON_CreateIndirect, 'Browse', ID_BUTTON_0, 13, 8, 100, 20, 0, 0x0, 0 },

(x,y) =  (13,8).

width = 100.

height = 20.

=> (x,y) center = (13+100/2 = 63,8+20/2=18).

When 1 keypad or button pressed, i checked that ok.

How to mapping 1 key pressed to WM_NOTIFICATION_CLICKED event of 

ID_BUTTON_0 (ID_BUTTON_0 is displayed on LCD)? After that, emwin will do something: show dialog...

Can you tell me solutions, please?

Thank you so much!

#tft-lcd-touch-screen-mapping-by-external-keypad
39 REPLIES 39
Tran Minh Cong
Associate II

Hi bạn,

Mình dùng thư viện HAL.

STM32CubeMX, Keil C lấy project từ STM32cubeMX tạo ra rồi code tiếp, không dùng STD.

Tran Minh Cong
Associate II

Mấy cái v�? TFT LCD này hay nhưng mình cũng mới nghiên cứu nên gặp nhi�?u vấn đ�? thật!

😊

Có dùng skype hay gmail nào không vậy? Khi nào rảnh liên lạc!

phuocnguyenhuu96
Associate III

Có facebook ko ông. Face tui : Nguyễn Hữu Phước

phuocnguyenhuu96
Associate III

Mail tui phuocnguyenhuu96@gmail.com

phuocnguyenhuu96
Associate III

Ông share tui project này được ko? Cảm ơn.

Tran Minh Cong
Associate II

Hi bạn,

Bạn tải STM32CubeF7, link này:

https://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-mcu-packages/stm32cubef7.html#sw-tools-scroll

Sau đó giải nén sẽ có những ví dụ v�? STM32F746.

Project mình đang làm theo team, mình không share được.

Tran Minh Cong
Associate II

Hi bạn,

Ví dụ v�? emwin, nhưng dùng F429:

http://forum.armfly.com/forum.php?mod=viewthread&tid=17330

Tải v�? free, không cần đăng nhập.

Tran Minh Cong
Associate II

Thêm 1 link cho bạn tham khảo:

http://forum.armfly.com/forum.php?mod=viewthread&tid=19834&extra=page%3D1

Của tác giả"eric2013".

phuocnguyenhuu96
Associate III

Cảm ơn ông, mà sao toàn tiếng Trung thế ông @@

Tran Minh Cong
Associate II

Hi,

google dịch thôi là biết được một số rồi.