Hi, i'm working on a project with a portenta h7 and an android application.
This application makes some Bulktransfer on the appropriate endpoint of the board for send order but the portenta h7 don't react to it.
#include <Scheduler.h>
int ledr = LEDR;//the built-in RGB led pins need to be pulled to ground to make the LED light up.
int ledg = LEDG;//This means that a voltage level of LOW will turn the LED on, a voltage level of HIGH will turn it off.
int ledb = LEDB;
void setup()
{
//Serial.begin(115200); //tried but the result was worst! It dont even work with the IDE
Serial.begin(9600);
// Setup the 3 led pins as OUTPUT
pinMode(ledr, OUTPUT);
pinMode(ledg, OUTPUT);
pinMode(ledb, OUTPUT);
digitalWrite(ledr,HIGH);
digitalWrite(ledg,HIGH);
digitalWrite(ledb,HIGH);
}
void loop()
{
//digitalWrite(ledr,LOW);
if(Serial)//check if a usb communication is possible
{
digitalWrite(ledg,LOW);
if(Serial.available() > 0)//listen Serial port for USB
{
digitalWrite(ledb,LOW);
}
}
}
I think i'm not listening correctly but i don't know how do it.
I didn't find information about how using the bulk endpoint of portenta h7 nor about the number we give to the Serial.begin .
How do i see all serial possible and what they are for?
For exemple with 9600 i can communicate with the IDE interface but is it all?
And is the number completely random?
I can't find any information about it everyone say use that but without explaining or giving a documentation.