4 Star 31 Fork 17

韦东山 / esp32_100ask_project

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
platformio.ini 2.95 KB
一键复制 编辑 原始数据 按行查看 历史
周岳标 提交于 2021-04-26 15:36 . first commit
; 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
1
https://gitee.com/weidongshan/esp32_100ask_project.git
git@gitee.com:weidongshan/esp32_100ask_project.git
weidongshan
esp32_100ask_project
esp32_100ask_project
master

搜索帮助