Skip to content
C
4.0 KB
Raw Blame
[common]
lib_deps =
	adafruit/Adafruit GFX Library@^1.11.5
	adafruit/Adafruit LED Backpack Library@^1.1
	adafruit/Adafruit NeoPixel@^1.10.5
	adafruit/Adafruit PCD8544 Nokia 5110 LCD library@^2.0.1
	adafruit/Adafruit [email protected]
	adafruit/Adafruit WS2801 [email protected]
	lemmingdev/ESP32-BLE-Gamepad@^0.5.2 #liberia  per bluettoth
	h2zero/NimBLE-Arduino@^1.4.0 #liberia nible usata per bluettoth
	

	#includes fixes for esp
	https://github.com/9khil/LedControl#913cbcebb8ceea6783bb271d385d18b99c2d5e79
	marcoschwartz/[email protected]
	smougenot/[email protected]+sha.9486982048
	https://github.com/paulo-raca/ArduinoBufferedStreams.git#5e3a1a3d140955384a07878c64808e77fa2a7521
	noah1510/LedController @ ^1.7.0
	locoduino/RingBuffer@^1.0.4
	https://github.com/maxint-rd/TM16xx#95a1bdd959bf6fce75d0059f129386155f49f984
	tzapu/WiFiManager@^2.0.17
	makuna/NeoPixelBus

	#####
	# These libraries don't work either because they require arduino/atmel processors, 
	#   define timings based on them, or use interfaces not implemented by the ESPs
	#   such as joystick ({most} ESPs are incapable of implementing it with hardware)
	#   if you know how to fix the incompatibilities, you may do so by adding code in 
	#   lib/EspSimHub/EspSimHub.h
	######

	#adafruit/Adafruit Motor Shield library@^1.0.1
	#https://github.com/lincomatic/Colorduino
	#https://github.com/MHeironimus/ArduinoJoystickLibrary@^2.0.4
	#https://github.com/Antonded/NewTone
	#bhagman/Tone@^1.0.0
	#rjbatista/TM1638@^2.2.0
	#arduino-libraries/Robot Motor@^1.0.3
	#arduino-libraries/Robot Control@^1.0.4


#############################################
#  ESP8266
#
#  Comment out this whole block below if 
#   you're not compiling for this platform
#
#############################################
;[env:esp8266]
;platform = espressif8266
# this should be set to your flavor of esp8266, for instance d1_mini
# BOARD_LIST: https://docs.platformio.org/en/latest/boards/index.html#espressif-8266
;board = nodemcuv2
;framework = arduino
;lib_deps = 
;  	${common.lib_deps}
;	fastled/[email protected] #newer versions don't seem to work with esp8266 in my tests
;	# add any libraries that are specific for the es8266

;build_flags = 
;	-w -DESP8266=true
;monitor_speed = 115200
;;upload_port = COM4
;;build_type = debug # set this to debug only for debugging, as it's slower.
;monitor_filters = esp8266_exception_decoder
;build_unflags = -fno-rtti # comment this out if you need more ram, but you'll need to make some type assumptions


#############################################
# ESP32
#
#  Comment out this whole block below if 
#   you're not compiling for this platform
#
#############################################
[env:esp32]
platform = [email protected]
board_build.partitions = huge_app.csv
# this should be set to your flavor of esp32, for instance wemos_d1_mini32, esp32doit-devkit-v1, seeed_xiao_esp32c3
# BOARD LIST: https://docs.platformio.org/en/latest/boards/index.html#espressif-32
board = esp32doit-devkit-v1
framework = arduino
lib_deps = 
    moononournation/GFX Library for [email protected]
	; https://github.com/MacManley/gt7-udp.git
	locoduino/RingBuffer@^1.0.4
    https://github.com/paulo-raca/ArduinoBufferedStreams.git#5e3a1a3d140955384a07878c64808e77fa2a7521
    tzapu/WiFiManager@^2.0.17
	ricmoo/[email protected]
	#lemmingdev/ESP32-BLE-Gamepad@^0.5.2 #liberia  per bluettoth
	#h2zero/NimBLE-Arduino@^1.4.0 #liberia nible usata per bluettoth

;# this sets your board to 240MHz, not all boards support this, but if yours does, uncomment.
;; board_build.f_cpu = 240000000L

build_flags = 
	-w -DESP32=true

;; build_type = debug # set this to debug only for debugging, as it's slower.
;monitor_filters = esp32_exception_decoder
;upload_speed = 921600
;upload_port = COM10

upload_port = COM3
monitor_port = COM3
monitor_speed = 115200

# Alternate ESP32-2432S028 display controller.
# The default esp32 environment keeps the original ILI9341 panel configuration.
[env:esp32-st7789]
extends = env:esp32
build_flags =
	${env:esp32.build_flags}
	-DDISPLAY_PANEL_ST7789=1