``` mkdir test && cd test mbed new . mbed add https://github.com/arduino/ArduinoCore-API mbed add https://github.com/arduino/ArduinoCore-mbed cat <<EOT >> main.cpp DigitalOut led(PA_1); int main() { pinMode(PA_0, OUTPUT); while (1) { digitalWrite(PA_0, HIGH); delay(100); digitalWrite(PA_0, LOW); delay(100); } } EOT mbed compile -m TARGET -t GCC_ARM ```
9 lines
171 B
Plaintext
9 lines
171 B
Plaintext
cores/arduino/mbed/*
|
|
cores/arduino/api/Stream.h
|
|
cores/arduino/api/deprecated/Stream.h
|
|
cores/arduino/main.cpp
|
|
libraries/openamp*
|
|
cores/arduino/USB/*
|
|
variants/*
|
|
libraries/*
|