ESP32-C3를 사용하고 시리얼통신으로 데이타를 읽고, 블루투스 BLE를 이용해서
스마트폰 화면에 일반 LCD와 같은 LCD 4*20을 구현해서 문자를 출력할때 x,y를 지정하고
문자를 출력하게 하고 싶어요
앱인벤터에서는 어떻게 구현을 해야될지 알고 싶어요
예를 들면 3,10,hello 데이타를 수신하면 x,y,hello를 스마트폰 화면에 구현한 LCD에
x위치 3 , y위치 10, 문자는 hello 가 출력되면 됩니다.
도와 주세요
Besides using the standard BLE text receiving techniques from
I would stack 4 monospace Labels in a Vertical Arrangement, each initialized to a string of 10 blanks.
Keep the Label components in a global list, by row (1-4).
When an x,y,message text arrives, select Label component x(1-4) from the list.
If length(message) + y > 10 then clip message to fit.
Update its .Text to the text JOIN of:
- the existing contents of the Label.Text, from 1 up to index y-1 (or empty if y=1),
- the message
- the existing contents of the Label.Text, from (min(y+length(message)+1,10) to 10