Skip to content
Snippets Groups Projects
Commit 959d4274 authored by Erik Strand's avatar Erik Strand
Browse files

Half an attempt to compile arduino with avr-g++

parent 6826f0a2
Branches
No related tags found
No related merge requests found
// Compile with
// avr-g++ -x c++ -mmcu=attiny44 -Wall -Os -c -DF_CPU=20000000 -I/usr/share/arduino/hardware/arduino/cores/arduino -I/usr/share/arduino/hardware/arduino/variants/standard blink.cpp
// avr-g++ -x c++ -mmcu=attiny44 -Wall -Os -c -DF_CPU=20000000 -I/usr/share/arduino/hardware/arduino/cores/arduino -I/usr/share/arduino/hardware/arduino/variants/standard /usr/share/arduino/hardware/arduino/cores/arduino/wiring.c
// avr-g++ -x c++ -mmcu=attiny44 -Wall -Os -c -DF_CPU=20000000 -I/usr/share/arduino/hardware/arduino/cores/arduino -I/usr/share/arduino/hardware/arduino/variants/standard /usr/share/arduino/hardware/arduino/cores/arduino/wiring_digital.c
// avr-ar rcs libcore.a hooks.o wiring.o wiring_digital.o
#include <Arduino.h>
void setup() {
pinMode(5, OUTPUT);
}
void loop() {
digitalWrite(5, LOW);
delay(1000);
digitalWrite(5, HIGH);
delay(400);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment