Skip to content

Unable to get serial communication for PCA10028 #17

@Devanshi15

Description

@Devanshi15

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 .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions