Renesas online compiler language

Is Renesas online compiler supports ANSI C (not arduino language) ?

Is it supports ANSI C , give example code for startup.

  • The language is C++. The support library is a subset of the 'C/C++' standard library.

  • In reply to VASHI:

    /* GR-KAEDE Sketch Template V1.00 */

    #include <Arduino.h>

    #define INTERVAL 100

    // variables will change:

    int buttonState = 0;         // variable for reading the pushbutton status

    void setup()

    {

    // initialize the LED pin as an output:

       pinMode(PIN_LED0,OUTPUT);

       pinMode(PIN_LED1,OUTPUT);

       pinMode(PIN_LED2,OUTPUT);

       pinMode(PIN_LED3,OUTPUT);

       // initialize the pushbutton pin as an input:

       pinMode(PIN_SW, INPUT);

    }

    void loop()

    {

    // read the state of the pushbutton value:

      buttonState = digitalRead(PIN_SW);

      // check if the pushbutton is pressed.

      // if it is, the buttonState is HIGH:

      if(buttonState == HIGH) {

      // turn LED on:

        digitalWrite(PIN_LED0, 1);

        delay(INTERVAL);

        digitalWrite(PIN_LED1, 1);

        delay(INTERVAL);

        digitalWrite(PIN_LED2, 1);

        delay(INTERVAL);

        digitalWrite(PIN_LED3, 1);

        delay(INTERVAL);

      }

      else {

      // turn LED off:

        digitalWrite(PIN_LED0, 0);

        delay(INTERVAL);

        digitalWrite(PIN_LED1, 0);

        delay(INTERVAL);

        digitalWrite(PIN_LED2, 0);

        delay(INTERVAL);

        digitalWrite(PIN_LED3, 0);

        delay(INTERVAL);

      }

    }

    This is basic example for digital I/O control.

  • In reply to VASHI:

    From this picture  you can easily find out the PIN_SW and PIN_LED0 ,PIN_LED1 ,PIN_LED2, PIN_LED3 .

    After loading this code. If u press the SWITCH, u will get to know the changes in LED