File tree Expand file tree Collapse file tree 1 file changed +23
-1
lines changed
examples/Braccio_LearnByDoing Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change
1
+ /*
2
+ * @brief Activating the "MOVE" button by pressing
3
+ * the joystick enables a waving motion of the arm.
4
+ */
5
+
6
+ /* *************************************************************************************
7
+ * INCLUDE
8
+ **************************************************************************************/
9
+
1
10
#include < Braccio++.h>
2
11
#include " FlashIAPBlockDevice.h"
3
12
#include " FATFileSystem.h"
4
13
14
+ /* *************************************************************************************
15
+ * VARIABLES
16
+ **************************************************************************************/
17
+
5
18
enum states {
6
19
LEARN,
7
20
REPEAT,
@@ -14,6 +27,10 @@ float values[10000];
14
27
float * idx = values;
15
28
float * final_idx = 0 ;
16
29
30
+ /* *************************************************************************************
31
+ * FUNCTIONS
32
+ **************************************************************************************/
33
+
17
34
static void event_handler (lv_event_t * e) {
18
35
lv_event_code_t code = lv_event_get_code (e);
19
36
lv_obj_t * obj = lv_event_get_target (e);
@@ -95,9 +112,14 @@ void customMenu() {
95
112
static FlashIAPBlockDevice bd (XIP_BASE + 0x100000 , 0x100000 );
96
113
static mbed::FATFileSystem fs (" fs" );
97
114
98
- void setup () {
115
+ /* *************************************************************************************
116
+ * SETUP/LOOP
117
+ **************************************************************************************/
99
118
119
+ void setup ()
120
+ {
100
121
Serial.begin (115200 );
122
+ while (!Serial) { }
101
123
102
124
// Mount file system for load/store movements
103
125
int err = fs.mount (&bd);
You can’t perform that action at this time.
0 commit comments