File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
APIs_Storage/BufferedBlockDevice
Flow-Control-Busy-Wait-Button
Flow-Control-Interrupt-Button Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 16
16
17
17
#include " BufferedBlockDevice.h"
18
18
#include " HeapBlockDevice.h"
19
- #include < stdlib.h >
19
+ #include < cstdio >
20
20
21
21
int main ()
22
22
{
@@ -29,7 +29,7 @@ int main()
29
29
int err = buf_bd.init ();
30
30
31
31
uint8_t buf[8 ];
32
- for (uint i = 0 ; i < sizeof (buf); i++) {
32
+ for (uint8_t i = 0 ; i < sizeof (buf); i++) {
33
33
buf[i] = i;
34
34
}
35
35
Original file line number Diff line number Diff line change 1
1
#include " mbed.h"
2
2
3
- DigitalIn button (SW1 ); // Change to match your board
3
+ DigitalIn button (BUTTON1 ); // Change to match your board
4
4
DigitalOut led (LED1);
5
5
6
6
#define BUTTON_PRESS 0
Original file line number Diff line number Diff line change 1
1
#include " mbed.h"
2
2
3
- InterruptIn button (SW1 );
3
+ InterruptIn button (BUTTON1 );
4
4
DigitalOut led (LED1);
5
5
DigitalOut heartbeat (LED2);
6
6
You can’t perform that action at this time.
0 commit comments