This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "atmega328p", | |
"includePath": [ | |
"${workspaceFolder}/**" | |
], | |
"defines": [ | |
"__AVR_ATmega328P__" | |
], | |
"compilerPath": "{path-to-avr-gcc}/avr-gcc", | |
"cStandard": "c99", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BasedOnStyle: Microsoft | |
IndentCaseLabels: true | |
AllowShortCaseLabelsOnASingleLine: true | |
AllowShortLoopsOnASingleLine: true | |
SpaceAfterCStyleCast: true | |
PointerAlignment: Left | |
BitFieldColonSpacing: None | |
BreakBeforeBraces: Allman |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MCU = atmega328p | |
DUDEMCU = m328p | |
PROG = usbasp | |
OPT = s | |
CPPFLAGS = -DF_CPU=16000000 -O$(OPT) | |
CFLAGS = -mmcu=$(MCU) | |
TARGET = main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Toggle GPIO port PB1 (Arduino port 9) | |
* | |
* Note: This code only works with | |
* AVR 8-bit family micro-controllers | |
*/ | |
#include <avr/io.h> | |
int main(void) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CMakeLists.txt | |
# Based on the example CMake file provided by the official documentation | |
# this sample file allows you to connect your pico w to the internet | |
# without any further setup (wifi ssid and password are not included, | |
# you can include those values directly in the cmake command or declare them | |
# in an untracked header file) | |
# | |
# note: be sure to copy the header lwipopts.h to your workspace (it can | |
# be found in the examples: pico-examples/pico_w/wifi/lwipopts_examples_common.h). | |
# The workspace should look like this: |