Skip to content

Commit 334944d

Browse files
author
Qinghao Shi
authored
fix astyle (#113)
1 parent a7ca7a1 commit 334944d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

APIs_Drivers/BusInOut_ex_1/main.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,18 @@
44
*/
55

66
#include "mbed.h"
7-
7+
88
BusInOut pins(D0, D1, D2); // Change these pins to buttons on your board.
9-
10-
int main() {
11-
while(1) {
9+
10+
int main()
11+
{
12+
while (1) {
1213
pins.output();
1314
pins = 0x3;
1415
ThisThread::sleep_for(1000);
1516
pins.input();
1617
ThisThread::sleep_for(1000);
17-
if(pins == 0x6) {
18+
if (pins == 0x6) {
1819
printf("Hello!\n");
1920
}
2021
}

0 commit comments

Comments
 (0)