Skip to content

Commit cceb801

Browse files
cocasemasalkinium
cocasema
authored andcommitted
[examples] Add Feather-RP2040 blinky
1 parent 3df5231 commit cceb801

File tree

3 files changed

+49
-1
lines changed

3 files changed

+49
-1
lines changed

.github/workflows/linux.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ jobs:
9999
- name: Examples RP20 Devices
100100
if: always()
101101
run: |
102-
(cd examples && ../tools/scripts/examples_compile.py rp_pico)
102+
(cd examples && ../tools/scripts/examples_compile.py rp_pico feather_rp2040)
103103
- name: Execute Python Scripts
104104
if: always()
105105
run: |
+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/*
2+
* Copyright (c) 2016, Sascha Schade
3+
* Copyright (c) 2017, Niklas Hauser
4+
*
5+
* This file is part of the modm project.
6+
*
7+
* This Source Code Form is subject to the terms of the Mozilla Public
8+
* License, v. 2.0. If a copy of the MPL was not distributed with this
9+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
10+
*/
11+
// ----------------------------------------------------------------------------
12+
13+
#include <modm/board.hpp>
14+
15+
using namespace Board;
16+
17+
/*
18+
* Blinks the green user LED with 1 Hz.
19+
* It is on for 90% of the time and off for 10% of the time.
20+
*/
21+
22+
int
23+
main()
24+
{
25+
Board::initialize();
26+
27+
Led::setOutput();
28+
29+
while (true)
30+
{
31+
Led::set();
32+
modm::delay(900ms);
33+
34+
Led::reset();
35+
modm::delay(100ms);
36+
}
37+
38+
return 0;
39+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<library>
2+
<extends>modm:feather-rp2040</extends>
3+
<options>
4+
<option name="modm:build:build.path">../../../build/feather_rp2040/blink</option>
5+
</options>
6+
<modules>
7+
<module>modm:build:scons</module>
8+
</modules>
9+
</library>

0 commit comments

Comments
 (0)