Sketch Reference:

This reference describes libraries for writing program for GR-ADZUKI, and HTTP API for controling web compiler. Refer to the below when you start to use GR-ADZUKI at the first time.

About "Arduino-like" sketches...

You can make a code compatible with Arduino.
In Arduino, programs are called "sketches," which is why we have tried to make things easier by calling them "sketches" here as well.
Here's a little explanation about sketches. Take a look at the sample sketch to the below. This is a simple sketch that turns on red LED on the ADZUKI board.

#include <Arduino.h>
void setup(){
    pinMode(13, OUTPUT);

void loop(){
    digitalWrite(13, HIGH);
    digitalWrite(13, LOW);

Arduino requires a unique description -- setup() and loop() -- to be included in the sketch. The setup() function is called only once after reset or power-on. Then the loop() function is executed repeatedly. For example, the sketch to the right turns the LED on and off the using pinMode(), digitalWrite(), and delay() functions. The pinMode() in the setup() defines which pin to use for driving the LED. Then the digitalWrite() turns the LED on and off. The delay() defines on and off time. When using the ADZUKI board, always describe #include <Arduino.h>, the library that includes all these Arduino compatible functions, in the first line.

The best thing about Arduino is its plentiful choice of libraries. These libraries make it easy to not only turn on LEDs, but also emit noises, run motors, and connect to networks. Check out the lineup in the LIBRARY tab in the menu above.

About Pin layout

Below describes pin layout of the ADZUKI board. There are many cases you use the library with pin number. For example, the following description:

digitalWrite(2, LOW);

This means to set pin2 to LOW. And from A0 to A7 can be used to read analog value. For example, the folllowing description:


This means to read from A0 condition. Anyway, from A0 to A7 are same as from 14 to 21. Although LED pins are assigned to 6, 9, 10, 11, 12 and 13, The colors are controlled by pin22(red), pin23(green) and pin24(blue).


March 30, 2018: Updated Serial and Ethernet. Added SoftwareSerial.

Made by Gadget Renesas Project
Contents are CC BY-SA 3.0