You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So it is normal that first time the app crashes as it is not able to find the usb, but then when I plug in my Arduino over USB OTG and then it asks to select the app but then it crashes.
I'm running the code on Motorola Nexus
Android version: 5.1.1
processing version: 3.0.2
import com.yourinventit.processing.android.serial.*;
Serial SerialPort;
boolean Toggle;
void setup()
{
println(Serial.list(this));
// this simple initialisation works only when one Serial consumer (e.g. an Arduino)
// is connected. Serial.list provides a list with all Usb Serial devices attached
// to this machine.
SerialPort = new Serial(this, Serial.list(this)[0], 9600);
}
void draw()
{
}
void mousePressed() {
Toggle = !Toggle;
SerialPort.write( Toggle?"1":"0");
}
So it is normal that first time the app crashes as it is not able to find the usb, but then when I plug in my Arduino over USB OTG and then it asks to select the app but then it crashes.
I'm running the code on Motorola Nexus
Android version: 5.1.1
processing version: 3.0.2
My Library structure:
Documents/Processing/libraries/ArduinoSerial/README.md, library.properties, library/ slf4j-android.license.txt, usb-serial-for-android.license.txt, AndroidSerial.jar, slf4j-android-1.6.1-RC1.jar, usb-serial-for-android-v010.jar
My Arduino Code:
My Processing Code:
Device filter location:
.. projectFolder/res/xml/device_filter.xml
device_filter.xml:
The Manifest File:
The text was updated successfully, but these errors were encountered: