diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 314836e691..c72955b0cb 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -99,7 +99,7 @@ jobs: - name: Examples RP20 Devices if: always() run: | - (cd examples && ../tools/scripts/examples_compile.py rp_pico feather_rp2040) + (cd examples && ../tools/scripts/examples_compile.py feather_rp2040 rp_pico thingplus_rp2040) - name: Execute Python Scripts if: always() run: | diff --git a/examples/thingplus_rp2040/blink/main.cpp b/examples/thingplus_rp2040/blink/main.cpp new file mode 100644 index 0000000000..2c2614c316 --- /dev/null +++ b/examples/thingplus_rp2040/blink/main.cpp @@ -0,0 +1,39 @@ +/* + * Copyright (c) 2016, Sascha Schade + * Copyright (c) 2017, Niklas Hauser + * + * This file is part of the modm project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ +// ---------------------------------------------------------------------------- + +#include + +using namespace Board; + +/* + * Blinks the user LED with 1 Hz. + * It is on for 90% of the time and off for 10% of the time. + */ + +int +main() +{ + Board::initialize(); + + Led::setOutput(); + + while (true) + { + Led::set(); + modm::delay(900ms); + + Led::reset(); + modm::delay(100ms); + } + + return 0; +} diff --git a/examples/thingplus_rp2040/blink/project.xml b/examples/thingplus_rp2040/blink/project.xml new file mode 100644 index 0000000000..4d9daf6e8b --- /dev/null +++ b/examples/thingplus_rp2040/blink/project.xml @@ -0,0 +1,9 @@ + + modm:thingplus-rp2040 + + + + + modm:build:scons + +