Buenas noches, estoy usando un arduino due y tengo el presente problema
void setup() {
// put your setup code here, to run once:
SerialUSB.begin(115200);
pinMode(LED_BUILTIN, OUTPUT);
while (!SerialUSB);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
SerialUSB.print("<POWERON>>");
delay(1000);
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(1000);
}
Cuando ejecuto este codigo en el arduino conectado al serial monitor, funciona ok, el problema aparece cuando lo conecto al periferico, no habilita el puerto y no ejecuta la sentencia.
Lo he repetido con el puerto serie comun y hace lo mismo, el periferico tiene un ch340 como interfaz usb, si alguien tiene experiencia en este problema agradeceria cualquier ayuda.