Skip to content

Commit e883eaa

Browse files
Version the Out Of Box project (OOB) to v3.0.1
1 parent 2d23f5f commit e883eaa

File tree

4 files changed

+30
-9
lines changed

4 files changed

+30
-9
lines changed

source/samples/OOB.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
* Modified version of the original OOB hex to support V2
33
*/
44

5+
#include "OOB.h"
56
#include "MicroBit.h"
67
#include "Tests.h"
78
#include <cmath>

source/samples/OOB.h

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/**
2+
* (c) 2020-2023 Lancaster University
3+
* (c) 2020-2025 Micro:bit Educational Foundation
4+
*
5+
* SPDX-License-Identifier: MIT
6+
*/
7+
#ifndef MB_OOB_H
8+
#define MB_OOB_H
9+
10+
#include "MicroBit.h"
11+
12+
#ifndef MB_OOB_VERSION
13+
#define MB_OOB_VERSION "3.0.1"
14+
#endif
15+
16+
extern MicroBit uBit;
17+
18+
void out_of_box_experience_v2();
19+
void out_of_box_experience();
20+
21+
#endif // MB_OOB_H

source/samples/OOB_v3.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1+
/**
2+
* (c) 2020-2023 Lancaster University
3+
* (c) 2020-2025 Micro:bit Educational Foundation
4+
*
5+
* SPDX-License-Identifier: MIT
6+
*/
7+
#include "OOB.h"
18
#include "MicroBit.h"
29
#include "Synthesizer.h"
310
#include "StreamRecording.h"
411
#include "LowPassFilter.h"
5-
#include "Tests.h"
612

713
const char * const heart =
814
"000,255,000,255,000\n"

source/samples/Tests.h

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11
#include "MicroBit.h"
22
#include "CodalDmesg.h"
3+
#include "OOB.h"
34

45
#ifndef MB_NEXT_TESTS_H
56
#define MB_NEXT_TESTS_H
67

7-
#define MICROBIT_UBIT_AS_STATIC_OBJECT
8-
9-
#ifdef MICROBIT_UBIT_AS_STATIC_OBJECT
108
extern MicroBit uBit;
11-
#else
12-
extern MicroBit& uBit;
13-
#endif
149

1510
void blinky();
1611
void button_test1();
@@ -93,8 +88,6 @@ void mixer_test2();
9388
void speaker_pin_test();
9489
void say_hello();
9590
void stream_mixer_to_serial();
96-
void out_of_box_experience_v2();
97-
void out_of_box_experience();
9891
void level_meter();
9992
void init_clap_detect();
10093
void ble_test();

0 commit comments

Comments
 (0)