代码拉取完成,页面将自动刷新
; 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
;
; For more resources, please visit
; https://www.100ask.net
; https://gitee.com/weidongshan
[env:esp32dev]
platform = espressif32
board = esp32dev
board_build.partitions = 100ask_esp32_partitions.csv
monitor_speed=115200
; change MCU frequency
board_build.f_cpu = 240000000L # 80 MHz to 240 MH
#framework = espidf
framework = arduino
platform_packages =
platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git
build_flags =
-D ESP32
# Turn on debugging
-D NOFRENDO_DEBUG
# -D CONFIG_FREERTOS_HZ=300 (it's a multiple of 50hz and 60hz) -- this is set in sdkconfig.h
# PAL timing (feels too slow)
# -D PAL
# NTSC timing defaults if PAL not defined
# Sound Settings
-D CONFIG_SOUND_ENABLED
# Note: Do not assign anything else to pins 25 or 26, those are used by I2S
# LCD Settings
-D CONFIG_HW_LCD_CS_GPIO=5
-D CONFIG_HW_LCD_RESET_GPIO=0
-D CONFIG_HW_LCD_DC_GPIO=2
-D CONFIG_HW_LCD_MOSI_GPIO=23
-D CONFIG_HW_LCD_CLK_GPIO=18
-D CONFIG_HW_LCD_BL_GPIO=-1
-D CONFIG_HW_LCD_MISO_GPIO=19
# Requires using VSPI bus, disable locks to speed up transfers
-D CONFIG_HW_LCD_CLOCK_SPEED=80
-D DISABLE_HAL_LOCKS=1
# Pin mappings for SD card
-D CONFIG_SD_CARD=1
-D CONFIG_SD_CS=32
-D CONFIG_SD_SCK=33
-D CONFIG_SD_MOSI=14
-D CONFIG_SD_MISO=13
# Pin mappings for NES PS input
-D CONFIG_HW_CONTROLLER_NES_PS=1
# CLOCK
-D CONFIG_HW_NES_PS_CLOCK_PIN=16
# LATCH
-D CONFIG_HW_NES_PS_LATCH_PIN=17
# DATA
-D CONFIG_HW_NES_PS_DATA_PIN=34
# Pin mappings for PCF8574(IIC) input
-D CONFIG_HW_CONTROLLER_PCF8574_I2C=0
-D CONFIG_HW_PCF8574_I2C_SDA=21
-D CONFIG_HW_PCF8574_I2C_SCL=22
-D CONFIG_HW_PCF8574_I2C_ADDR=0x20
#Pin mappings for GPIO (raw button input)
-DCONFIG_HW_CONTROLLER_GPIO=0
-D CONFIG_HW_GPIO_START=-1
-D CONFIG_HW_GPIO_SELECT=-1
-D CONFIG_HW_GPIO_UP=-1
-D CONFIG_HW_GPIO_DOWN=-1
-D CONFIG_HW_GPIO_LEFT=-1
-D CONFIG_HW_GPIO_RIGHT=-1
-D CONFIG_HW_GPIO_B=-1
-D CONFIG_HW_GPIO_A=-1
#Also referred to as Button 2
-D CONFIG_HW_GPIO_MENU=-1
#Also referred to as Button 1
-D CONFIG_HW_GPIO_POWER=-1
-D CONFIG_HW_GPIO_TURBO_A=1
-D CONFIG_HW_GPIO_TURBO_B=1
#Include boot logo
-D COMPONENT_EMBED_TXTFILES=lib/menu/data/100ask_logo.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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。