File tree 3 files changed +49
-1
lines changed
examples/feather_rp2040/blink
3 files changed +49
-1
lines changed Original file line number Diff line number Diff line change 99
99
- name : Examples RP20 Devices
100
100
if : always()
101
101
run : |
102
- (cd examples && ../tools/scripts/examples_compile.py rp_pico)
102
+ (cd examples && ../tools/scripts/examples_compile.py rp_pico feather_rp2040 )
103
103
- name : Execute Python Scripts
104
104
if : always()
105
105
run : |
Original file line number Diff line number Diff line change
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 number Diff line number Diff line change
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 >
You can’t perform that action at this time.
0 commit comments