DA
Daniel-M/framework-arduino-avr-lgt8f
framework-arduino-avr-lgt8f for WAVGAT board development in PlatformIO
framework-arduino-avr-lgt8f
framework-arduino-avr-lgt8f for WAVGAT development in PlatformIO
Board package is taken from https://github.com/dbuezas/lgt8fx (current version lgt8f-1.0.5)
How to use
Prepare myboard.json
Create myboard.json, for WAVGAT NANO AVGA328P: wavgatnano.json.
{
"build": {
"core": "lgt8f",
"extra_flags": "-DARDUINO_AVR_NANO",
"f_cpu": "16000000L",
"mcu": "atmega328p",
"variant": "lgt8fx8p"
},
"bootloader": {
"efuse": "0xFD",
"file": "lgt8fx8p/optiboot_lgt8f328p.hex",
"hfuse": "0xFF",
"lock_bits": "0x3F",
"lfuse": "0xFF",
"unlock_bits": "0x3F"
},
"frameworks": [
"arduino"
],
"name": "WAVGAT Nano AVGA328P",
"upload": {
"maximum_ram_size": 2048,
"maximum_size": 29696,
"protocol": "arduino",
"require_upload_port": true,
"speed": 57600
},
"url": "https://www.arduino.cc/en/Main/ArduinoBoardNano",
"vendor": "Arduino"
}
Put this json file in PlatformIO project dir in the folder boards, such that you have the following structure:
rootproject\
.pio\
.vscode\
boards\
wavgatnano.json
include\
lib\
src\
test\
platformio.ini
Copy package to PlatformIO dir
Copy framework-arduino-avr-lgt8f package to $userhome$/.platformio/packages. Such that there is the lgt8f package next to the framework-arduino-avr package.
$userhome$/.platformio/packages/
framework-arduino-avr/
framework-arduino-avr-lgt8f/
Update platform.json
Add package to $userhome$/.platformio/platforms/atmelavr/platform.json
"packages": {
"framework-arduino-avr-lgt8f": {
"type": "framework",
"optional": true,
"version": "1.0.0"
}
}
Create environment in platformio.ini
Add environment in platformio.ini
[env:wavgatnano]
platform = atmelavr
board = wavgatnano
framework = arduino
upload_protocol = arduino
On this page
Languages
C43.2%C++35.6%Assembly10.0%Makefile7.1%PHP2.1%HTML1.3%Processing0.3%Shell0.2%JavaScript0.1%
Contributors
Created May 3, 2020
Updated May 3, 2020