Difference between revisions of "Building ConfigurableFirmata under PlatformIO instead of Tarduino IDE"

From Da Nerd Mage Wiki
Jump to navigation Jump to search
(Created page with "<u>Note: this is being done on a LMDE machine.</u> Clone the repo: * <code>git clone -b master https://github.com/firmata/ConfigurableFirmata.git</code> Create a '''platformio.ini''' file in the root of the folder: <SyntaxHighlight lang="ini" line> [env:RP2040_Zero] platform = https://github.com/maxgerhardt/platform-raspberrypi.git platform_packages = framework-arduinopico@https://github.com/earlephilhower/arduino-pico.git framework = arduino board = waveshare_rp2040...")
 
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<u>Note: this is being done on a LMDE machine.</u>
{{{!}} class="wikitable" style="float: right; width: 322px;" border="2"
{{!}}+ Proven on:
{{!}}- <!-- LMDE -->
{{!}} style="text-align: center; width: 65.675px;" {{!}} [[File:Logo LMDE.png{{!}}60px{{!}}link=https://linuxmint.com/edition.php?id=279{{!}}center{{!}}middle{{!}}frameless]]
{{!}} style="text-align: center; width: 40px;" {{!}} 5 (Elsie)
{{!}}
{{!}}}


Clone the repo:
Clone the repo:
* <code>git clone -b master  https://github.com/firmata/ConfigurableFirmata.git</code>
* <code>git clone -b master  https://github.com/firmata/ConfigurableFirmata.git</code>
Create a '''platformio.ini''' file in the root of the folder:
Create a '''platformio.ini''' file in the root of the folder:


Line 16: Line 21:


monitor_speed = 115200
monitor_speed = 115200
upload_port =   /media/'''USERNAME'''/RPI-RP2
upload_protocol = picotool
                 ; This could be improved in some way...
                 ; Of course, you have to physically hold the
                ; boot button while resetting the device first...
                ; Which is stupid... But... Whatever.


build_flags =  
build_flags =  

Latest revision as of 14:48, 1 July 2024

Proven on:
Logo LMDE.png
5 (Elsie)

Clone the repo:

Create a platformio.ini file in the root of the folder:

[env:RP2040_Zero]
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
platform_packages = framework-arduinopico@https://github.com/earlephilhower/arduino-pico.git
framework = arduino
board = waveshare_rp2040_zero   ; select your board from: ~/.platformio/packages/framework-arduinopico/variants/
board_build.core = earlephilhower
board_build.filesystem_size = 0.5m

monitor_speed = 115200
upload_protocol = picotool
                ; Of course, you have to physically hold the
                ; boot button while resetting the device first...
                ; Which is stupid... But... Whatever.

build_flags = 
    -DPIN_LED=1 ; I have an LED connected to pin 1
; 	-DPIO_FRAMEWORK_ARDUINO_ENABLE_EXCEPTIONS ; Enable Exceptions
; 	-fstack-protector ; Enable Stack Protector
	;-DPIO_FRAMEWORK_ARDUINO_ENABLE_RTTI ; Enable RTTI

	;-DUSE_TINYUSB ; Adafruit TinyUSB
	;-DPIO_FRAMEWORK_ARDUINO_NO_USB ; No USB stack
	
	;-DPIO_FRAMEWORK_ARDUINO_ENABLE_IPV6 ; IPv6

lib_deps =
    adafruit/Adafruit Unified Sensor
    adafruit/DHT sensor library

Copy examples/ConfigurableFirmata/ConfigurableFirmata.ino into the src directory.