File tree Expand file tree Collapse file tree 3 files changed +50
-1
lines changed
examples/nucleo_l053r8/blink Expand file tree Collapse file tree 3 files changed +50
-1
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ jobs:
119
119
- name : Examples STM32L0 Series
120
120
if : always()
121
121
run : |
122
- (cd examples && ../tools/scripts/examples_compile.py nucleo_l031k6)
122
+ (cd examples && ../tools/scripts/examples_compile.py nucleo_l031k6 nucleo_l053r8 )
123
123
- name : Examples STM32L1 Series
124
124
if : always()
125
125
run : |
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (c) 2016-2017, Niklas Hauser
3
+ * Copyright (c) 2017, Nick Sarten
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
+ #include < modm/board.hpp>
13
+
14
+ using namespace Board ;
15
+
16
+ int
17
+ main ()
18
+ {
19
+ Board::initialize ();
20
+ LedD13::setOutput ();
21
+
22
+ // Use the logging streams to print some messages.
23
+ // Change MODM_LOG_LEVEL above to enable or disable these messages
24
+ MODM_LOG_DEBUG << " debug" << modm::endl;
25
+ MODM_LOG_INFO << " info" << modm::endl;
26
+ MODM_LOG_WARNING << " warning" << modm::endl;
27
+ MODM_LOG_ERROR << " error" << modm::endl;
28
+
29
+ uint32_t counter (0 );
30
+
31
+ while (true )
32
+ {
33
+ LedD13::toggle ();
34
+ modm::delay (Button::read () ? 100ms : 500ms);
35
+
36
+ MODM_LOG_INFO << " loop: " << counter++ << modm::endl;
37
+ }
38
+
39
+ return 0 ;
40
+ }
Original file line number Diff line number Diff line change
1
+ <library >
2
+ <extends >modm:nucleo-l053r8</extends >
3
+ <options >
4
+ <option name =" modm:build:build.path" >../../../build/nucleo_l053r8/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