Serial Connection Won't Open


hello,

i working on project interface arduino unity having bit of trouble serial connection. arduino (leonardo) no write serial data through connection time. reason write when open serial monitor. not sure if normal behavior or not , if is, there way open , keep open? can tell not writing because tx light remain off until open monitor. becomes problem when try use unity read serial port because there no data on until open serial monitor, unity has complete access data. appreciated, guys.

code: [select]
void setup() {
  // put setup code here, run once:
  serial.begin(9600);
}

void loop() {
  
  serial.write("i'm alive");
  serial.println();

  delay(20);
}

what mean "unity"?

the documentation suggests need special treatment serial on leonardo.

...r


Arduino Forum > Using Arduino > Interfacing w/ Software on the Computer > Serial Connection Won't Open


arduino

Comments