Skip to content

Commit 6f99458

Browse files
committed
Initial commit
0 parents  commit 6f99458

10 files changed

+124960
-0
lines changed

.gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto

ILMH32XB_FNT.c

+1,660
Large diffs are not rendered by default.

ILMZ32XB_FNT.c

+113,160
Large diffs are not rendered by default.

README.md

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
◆概要
2+
3+
 ESP32-S3-BOX-LiteでグラフィックLCD ST7789 へ以下の表示するプログラムです。
4+
5+
 ・四字熟語のチェーン
6+
 ・四字駅名のチェーン
7+
 ・二字熟語問題作成
8+
9+
 漢字などの文字を表示するため「IPAフォント(Ver.003)」をベースとした「ILフォント」を利用しています。
10+
11+
 ライセンスなどは以下のファイルを参照ください。
12+
13+
  IPA_Font_License_Agreement_v1.0.txt
14+
15+
  README_ILM_ILG_fontx.txt
16+
17+
  Readme_ipam00303.txt
18+
19+
■参考
20+
21+
ESP32-S3-BOX-Liteの3ボタンの使い方のメモです。
22+
23+
```
24+
#define ADC_SW_PIN 1
25+
26+
/*************************************************
27+
* Buttons_ADC
28+
* return : 0 no push
29+
* 1 left
30+
* 2 center
31+
* 3 right
32+
*************************************************/
33+
int getButtonADC( void )
34+
{
35+
int vol;
36+
int btn = 0;
37+
38+
vol = analogRead( ADC_SW_PIN );
39+
if( vol < 1200 ) { /* 3.3/(10+3.3) -> 1016 */
40+
btn = 3;
41+
} else if( vol < 2600 ) { /* 15/(10+15) -> 2457 */
42+
btn = 2;
43+
} else if( vol < 3200 ) { /* 27/(10+27) -> 2988 */
44+
btn = 1;
45+
}
46+
47+
return btn;
48+
}
49+
```
50+
51+
52+
◆免責
53+
54+
 著作者は,提供するプログラムを用いることで生じるいかなる損害に関して,一切の責任を負わないものとします.
55+
56+
 たとえ,著作者が損害の生じる可能性を知らされていた場合も同様に一切の責任を負わないものとします.

app_param.h

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
/*
2+
* Copyright (C) 2022-2023 by Y.Ishioka
3+
*/
4+
5+
#ifndef _APP_PARAM_H_
6+
#define _APP_PARAM_H_
7+
8+
/* LCD display size */
9+
#define DEF_LCD_WIDTH 240
10+
#define DEF_LCD_HIGH 320
11+
12+
#if 0
13+
#define DEF_FONT_HIGH 16
14+
#define DEF_FONT_WIDTH 16
15+
#else
16+
#define DEF_FONT_HIGH 32
17+
#define DEF_FONT_WIDTH 32
18+
#endif
19+
20+
#define DEF_FONT_OUT_HIGH 64
21+
#define DEF_FONT_OUT_WIDTH 64
22+
23+
#define DEF_YOJI_MOJI 4
24+
#define DEF_YOJI_LST_MAX 200
25+
26+
#define DEF_NIJI_LST_MAX 500
27+
28+
#define DEF_TIM_YOJI_DLY 500
29+
#define DEF_TIM_SET_DLY 500
30+
#define DEF_TIM_GRAD_DLY 50
31+
#define DEF_TIM_CLR_DLY 500
32+
33+
#define DEF_TIM_NIJI_GRAD_DLY 50
34+
#define DEF_TIM_ANS_DISP 5000
35+
#define DEF_TIM_NEXT_DLY 3000
36+
37+
#define DEF_DP_X_OFFSET 40
38+
39+
#define RGB565_BLACK ST77XX_BLACK
40+
#define RGB565_RED ST77XX_RED
41+
#define RGB565_GREEN ST77XX_GREEN
42+
#define RGB565_BLUE ST77XX_BLUE
43+
#define RGB565_MAGENTA ST77XX_MAGENTA
44+
#define RGB565_CYAN ST77XX_CYAN
45+
#define RGB565_YELLOW ST77XX_YELLOW
46+
#define RGB565_ORANGE ST77XX_ORANGE
47+
#define RGB565_WHITE ST77XX_WHITE
48+
#define RGB565_PINK 0xFE19
49+
#define RGB565_SKYBLUE 0x867D
50+
#define RGB565_NAVY 0x000F
51+
#define RGB565_GREENYELLOW 0xB7E0
52+
#define RGB565_NEON 0x37E2
53+
#define RGB565_BUTTERMILK 0xEE73
54+
#define RGB565_BTOMATO 0xFB08
55+
56+
/* Item number for SD card data */
57+
#define DEF_TEXT_BUFF (1024)
58+
59+
#endif /* _APP_PARAM_H_ */
60+

0 commit comments

Comments
 (0)