-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dennis Evangelista
committed
Nov 14, 2018
1 parent
5a7468d
commit d2ea464
Showing
4 changed files
with
56 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* | ||
TESTS/receiver/simple/main.cpp | ||
Spektrum receiver test | ||
D Evangelista, 2018 | ||
*/ | ||
|
||
#include "mbed.h" | ||
#include "rtos.h" | ||
#include "spektrum.h" | ||
#include "unity.h" | ||
|
||
Serial pc(USBTX, USBRX); | ||
Spektrum receiver(p13, p14); | ||
char c; | ||
|
||
|
||
|
||
int main(){ | ||
|
||
pc.printf("Spektrum receiver simple test\r\n"); | ||
pc.printf("Be sure to connect orange to p13, gray to p14, blk to gnd\r\n"); | ||
pc.printf("Receiver should have already been bound to transmitter\r\n"); | ||
|
||
pc.printf("Successful (y/n)? "); | ||
pc.scanf(" %c",&c); | ||
TEST_ASSERT_EQUAL_MESSAGE('y',c,"receiver simple test failed.\r\n"); | ||
|
||
} // main() for TESTS/receiver/simple | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
https://github.com/ARMmbed/mbed-os/#bfb43799afe571b26895d021f9932c274cff58c6 | ||
https://github.com/ARMmbed/mbed-os/#aab3ade2b7b38996fd73b855f1c5bc46e2877313 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters