forked from MittisBootloop/esp32_nesemu_wemosmini
-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathplatformio.ini
More file actions
157 lines (153 loc) · 4.77 KB
/
platformio.ini
File metadata and controls
157 lines (153 loc) · 4.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[env:heltec_wifi_kit_32]
platform = espressif32
board = heltec_wifi_kit_32
framework = espidf
board_build.partitions = partitions.csv
monitor_speed=115200
build_flags =
# Heltec uses a different clock frequency, the default 40mhz results in the wrong baud rate and garbarge serial data
-DCONFIG_ESP32_XTAL_FREQ=26
# Turn on debugging
-DNOFRENDO_DEBUG
# -DCONFIG_FREERTOS_HZ=300 (it's a multiple of 50hz and 60hz) -- this is set in sdkconfig.h
# PAL timing (feels too slow)
# -DPAL
# NTSC timing defaults if PAL not defined
# Sound Settings
-DCONFIG_SOUND_ENABLED
# Note: Do not assign anything else to pins 25 or 26, those are used by I2S
# LCD Settings
-DCONFIG_HW_LCD_CS_GPIO=5
-DCONFIG_HW_LCD_RESET_GPIO=0
-DCONFIG_HW_LCD_DC_GPIO=2
-DCONFIG_HW_LCD_MOSI_GPIO=23
-DCONFIG_HW_LCD_CLK_GPIO=18
-DCONFIG_HW_LCD_BL_GPIO=-1
-DCONFIG_HW_LCD_MISO_GPIO=19
# Requires using VSPI bus, disable locks to speed up transfers
-DCONFIG_HW_LCD_CLOCK_SPEED=80
-DDISABLE_HAL_LOCKS=1
# Pin mappings for PSX input
-DCONFIG_HW_CONTROLLER_PSX
# MISO
-DCONFIG_HW_PSX_DAT=21
# MOSI
-DCONFIG_HW_PSX_CMD=4
# CS
-DCONFIG_HW_PSX_ATT=27
# CLK
-DCONFIG_HW_PSX_CLK=22
# Pin mappings for SD card
-DCONFIG_SD_CARD
-DCONFIG_SD_CS=15
-DCONFIG_SD_MOSI=13
-DCONFIG_SD_SCK=14
-DCONFIG_SD_MISO=12
#Pin mappings for GPIO (raw button input)
# -DCONFIG_HW_CONTROLLER_GPIO
-DCONFIG_HW_GPIO_START=1
-DCONFIG_HW_GPIO_SELECT=1
-DCONFIG_HW_GPIO_UP=1
-DCONFIG_HW_GPIO_DOWN=1
-DCONFIG_HW_GPIO_LEFT=1
-DCONFIG_HW_GPIO_RIGHT=1
-DCONFIG_HW_GPIO_B=1
-DCONFIG_HW_GPIO_A=1
#Also referred to as Button 2
-DCONFIG_HW_GPIO_MENU=1
#Also referred to as Button 1
-DCONFIG_HW_GPIO_POWER=1
-DCONFIG_HW_GPIO_TURBO_A=1
-DCONFIG_HW_GPIO_TURBO_B=1
#Include boot logo
-DCOMPONENT_EMBED_TXTFILES=lib/menu/data/image.jpg
# Bypass compile errors in the Nofrendo code
-Wno-error=char-subscripts
-Wno-error=attributes
-Wno-error=maybe-uninitialized
# New platform version causes new build errors to trigger
# -Wno-error=misleading-indentation
# -Wno-error=unused-const-variable
# -Wno-error=format-truncation
-g
[env:ke32-wrover-c20]
# Same settings as Heltec board, but for one based on wrover-kit,
# only difference is XTAL frequency and flash size (but we use the same partition map for both right now)
platform = espressif32
board = ke32-wrover-c20
framework = espidf
board_build.partitions = partitions.csv
monitor_speed=115200
build_flags =
# Turn on debugging
-DNOFRENDO_DEBUG
# -DCONFIG_FREERTOS_HZ=300 (it's a multiple of 50hz and 60hz) -- this is set in sdkconfig.h
# PAL timing (feels too slow)
# -DPAL
# NTSC timing defaults if PAL not defined
# Sound Settings
-DCONFIG_SOUND_ENABLED
# Note: Do not assign anything else to pins 25 or 26, those are used by I2S
# LCD Settings
-DCONFIG_HW_LCD_CS_GPIO=5
-DCONFIG_HW_LCD_RESET_GPIO=0
-DCONFIG_HW_LCD_DC_GPIO=2
-DCONFIG_HW_LCD_MOSI_GPIO=23
-DCONFIG_HW_LCD_CLK_GPIO=18
-DCONFIG_HW_LCD_BL_GPIO=-1
-DCONFIG_HW_LCD_MISO_GPIO=19
# Requires using VSPI bus, disable locks to speed up transfers
-DCONFIG_HW_LCD_CLOCK_SPEED=80
-DDISABLE_HAL_LOCKS=1
# Pin mappings for PSX input
-DCONFIG_HW_CONTROLLER_PSX
# MISO
-DCONFIG_HW_PSX_DAT=21
# MOSI
-DCONFIG_HW_PSX_CMD=4
# CS
-DCONFIG_HW_PSX_ATT=27
# CLK
-DCONFIG_HW_PSX_CLK=22
# Pin mappings for SD card
-DCONFIG_SD_CARD
-DCONFIG_SD_CS=15
-DCONFIG_SD_MOSI=13
-DCONFIG_SD_SCK=14
-DCONFIG_SD_MISO=12
#Pin mappings for GPIO (raw button input)
# -DCONFIG_HW_CONTROLLER_GPIO
-DCONFIG_HW_GPIO_START=1
-DCONFIG_HW_GPIO_SELECT=1
-DCONFIG_HW_GPIO_UP=1
-DCONFIG_HW_GPIO_DOWN=1
-DCONFIG_HW_GPIO_LEFT=1
-DCONFIG_HW_GPIO_RIGHT=1
-DCONFIG_HW_GPIO_B=1
-DCONFIG_HW_GPIO_A=1
#Also referred to as Button 2
-DCONFIG_HW_GPIO_MENU=1
#Also referred to as Button 1
-DCONFIG_HW_GPIO_POWER=1
-DCONFIG_HW_GPIO_TURBO_A=1
-DCONFIG_HW_GPIO_TURBO_B=1
#Include boot logo
-DCOMPONENT_EMBED_TXTFILES=lib/menu/data/image.jpg
# Bypass compile errors in the Nofrendo code
-Wno-error=char-subscripts
-Wno-error=attributes
-Wno-error=maybe-uninitialized
# New platform version causes new build errors to trigger
# -Wno-error=misleading-indentation
# -Wno-error=unused-const-variable
# -Wno-error=format-truncation
-g