Everything nRF52840 Compile Question
-
User NeverDie posted some sample code for transmitting a 1 byte payload 2 2 mps once per second. When I try to bring this code example over, I get a compile error on the third line of the example:
Serial pc(USBTX, USBRX); // tx, rxMy guess is that Serial is a typedef, but so far I cannot find it. Is there a header file other than "mbed.h" that includes a typedef for "Serial"?
Thanks,Mike Marks
-
Hello @mmarks3141,
I am just learning about nRF52840. My IDE is Eclipse/Sloeber and Arduino NANO BLE 33. And I do not want to use the mbed-OS, because it destroys the timing of my self developed libraries running on any Arduino-Board.
Your question is about using a serial interface, which depends on the firmware of your board. If it is mbed-OS, please look to the documentation of mbed: https://os.mbed.com/handbook/Serial.
If it is not mbed-OS, look for the resources of Your boards firmware/libraries.
For me (Arduino), it would be the initialization with Serial.begin(bitrate) in setup() and using Serial.print() for the output somewhere in loop().
By the way, thanks to @NeverDie for the examples.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login