write command serially to mbed
in
Integration and Hardware
•
8 months ago
i have an mbed file that initiates when a lower case 't' is sent to it. im having trouble writing to the serial port. here's what i have
- import processing.serial.*;
- // The serial port:
- Serial myPort;
- void setup() {
- // List all the available serial ports:
- println(Serial.list());
- // Open the port you are using at the rate you want:
- myPort = new Serial(this, Serial.list()[0], 115200);
- myPort.write('t');
- }
1