The arduino Sketch to program to Toggle on-board LEDs on XMC 4700 Relax kit.
C program toggle leds in every one second
/* Simple LED library flashes on board LED Every second Simple RTC for Infineon XMC boards with RTC Demonstrates the use of the LED library Works with any XMC board that has TWO LEDs on board */ /* For on board LEDs */ #include <LED.h> /* Create an LED object */ LED Led; void setup( ) { Led.Add( LED1 ); // Configure the LEDs Led.Add( LED2 ); // Set default state of LEDs Led.On( LED2 ); Led.Off( LED1 ); } void loop( ) { delay( 1000 ); Led.Toggle( LED2 ); Led.Toggle( LED1 ); }
Video of the action: