The Portenta board has (3) onboard LED's, (Red, Green, Blue). Which one/s are you trying to test with?
The question may be what pins, port, etc., are the onboard LED's wired to?
Yet another question may be how to address those pins/ports in B4R?
*
Blink green LED using Portenta M7 Core
*/
const int ON = LOW; // Voltage level is inverted
const int OFF = HIGH;
void setup() {
bootM4(); // Boot M4 core
pinMode(LEDG, OUTPUT); // Set green LED as output
}
void loop() {
digitalWrite(LEDG, ON); // Turn green LED on
delay(1000); // Wait for 1 second
digitalWrite(LEDG, OFF); // Turn green LED off
delay(1000);
}
The Portenta board has (3) onboard LED's, (Red, Green, Blue). Which one/s are you trying to test with?
The question may be what pins, port, etc., are the onboard LED's wired to?
Yet another question may be how to address those pins/ports in B4R?
Sub Process_Globals
Public Serial1 As Serial
Private LED_Red As Pin 'pin for the red Led
Private LED_Green As Pin 'pin for the green Led
Private LED_Blue As Pin 'pin for the blue Led
End Sub
*
Blink green LED using Portenta M7 Core
*/
const int ON = LOW; // Voltage level is inverted
const int OFF = HIGH;
void setup() {
bootM4(); // Boot M4 core
pinMode(LEDG, OUTPUT); // Set green LED as output
}
void loop() {
digitalWrite(LEDG, ON); // Turn green LED on
delay(1000); // Wait for 1 second
digitalWrite(LEDG, OFF); // Turn green LED off
delay(1000);
}
Sub Process_Globals
Public Serial1 As Serial
Private LED_Red As Pin 'pin for the red Led
Private LED_Green As Pin 'pin for the green Led
Private LED_Blue As Pin 'pin for the blue Led
End Sub