Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to get serial communication for PCA10028 #17

Open
Devanshi15 opened this issue Jun 9, 2018 · 0 comments
Open

Unable to get serial communication for PCA10028 #17

Devanshi15 opened this issue Jun 9, 2018 · 0 comments

Comments

@Devanshi15
Copy link

I am using Nordic board nRF51422 PCA10028 , I am trying this code :
byte byteRead;
#include "MyBoardNRF5.h"

void setup() {
// Turn the Serial Protocol ON
Serial.begin(9600);
}

void loop() {

//Serial.print("testing");
// check if data has been sent from the computer:
if (Serial.available()) {
// read the most recent byte
byteRead = Serial.read();
//ECHO the value that was read, back to the serial port.
Serial.write(byteRead);
}
}
But I dont get serial data though set correct baud rate 9600 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant