- [touchGFX]키보드에 없는 특수문자 출력하기(extended ascii code) 목차
LCD화면에 온도를 표시해야 하는 경우가 발생하였다
키보드를 아무리 찾아봐도 입력할 수 있는 방법이 없다
Ascii 코드가 있고 확장 Ascii 코드(extended ascii code)가 있는데
온도 표시는 확장 아스키 코드에 있다
1) 키보드에서 ASCII 를 입력하는 방법
NumLock가 눌려진 상태에서(즉, 숫자입력이 되지 않는 상태에서)
"ALT + ascii code"를 입력한다
즉 alt 키를 누른 상태에서 오른쪽 숫자 키보드 176을 입력한다
ascii 코드에 대한 내용은 아래를 참조
https://tnmsoft.tistory.com/118
아스키코드 (ASCII) 와 확장아스키코드(Extended ASCII)
아스키코드는 "American Standard Code for Information Interchange (정보교환을 위한 미국 표준코드)"의 약자이다. ASCII control characters (character code 0-31) ASCII 테이블의 첫 32 문자..
tnmsoft.tistory.com
2) TouchGFX의 textArea에서 alt + 176을 눌러 온도 표시를 입력한다
3) 프로그램으로 온도 표시를 출력하는 방법
Screen1View::Screen1View() //replace with name of your screen
{
Unicode::UnicodeChar a[] = {0x00B0,0};
uint16_t degree = 28;
Unicode::snprintf(textArea1Buffer, TEXTAREA1_SIZE, "%d %s", degree, a);
textArea1.invalidate();
}
How do I display ASCII extended characters in TouchGFX? I create a character string in main.c and it displays good in TouchGFX.
Cookie Notice Cookies and similar technologies enable us to provide you with an optimized user experience and functionality of our website. They also help us to monitor its performance and to make our advertising and marketing relevant to you. You have ful
community.st.com
즐거운 시간되세요^^
'STM32' 카테고리의 다른 글
[touchGFX]Custom Container 에 문자 출력하기 (0) | 2021.09.08 |
---|---|
STM32CubeIde의 font(폰트) 크기 변경 (0) | 2021.08.11 |
[TouchGFX]폰트(font) 추가 (0) | 2021.08.05 |
GIMP에서 레이어(그림에 있는 그림) 위의 그림 사이즈 수정 (0) | 2021.07.07 |
GIMP에서 이미지 크기 변경 (0) | 2021.07.07 |