Skip to content

Quick_Start_Guide_Arduino_IDE_Ver2_Add_Boards_Manager

SuguruHarada64 edited this page Sep 7, 2023 · 3 revisions

Installing Arduino IDE

  • https://www.arduino.cc/en/software
    • Download the version of Arduino IDE that matches the type of PC you are using.
      • The example below describes the procedure for “Windows Win 10 and newer, 64 bits”
        • At the time this Quick Start Guide was created, operation had been confirmed with version “Arduino IDE 2.1.0”

Launching Arduino IDE

  • Double-click the icon on the desktop to launch Arduino IDE.

Specifying the Board Manager File for the Fast Prototyping Board

Using Boards Manager to Install Tools

  • Select Tools → Board → Boards Manager….
    • en_ボードマネージャ
      • In the text entry box, enter RL78 and perform a search, then click the Install button.
        • en_ボード選択
  • The compiler, Arduino library for Fast Prototyping Board, and board programming tool are downloaded and installed in Arduino IDE.

Writing a sketch to make an LED flash at 1.0-second intervals.

  • Select File → Sketch example → 01.Basics → Blink. The following code is printed.
  • en_スケッチ_LED
// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(LED_BUILTIN, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(LED_BUILTIN, HIGH);  // turn the LED on (HIGH is the voltage level)
  delay(1000);                      // wait for a second
  digitalWrite(LED_BUILTIN, LOW);   // turn the LED off by making the voltage LOW
  delay(1000);                      // wait for a second
}

Hardware Setup

  • Connect the PC to the RL78/G23-64p Fast Prototyping Board using a USB cable.

  • Use Device Manager to confirm which COM port number has been recognized.

    • If you don't see the COM port, open-circuit J13 and reconnect USB.
  • Configure the COM port number setting in Arduino IDE.

    • en_使用ポート
  • Select the board in Arduino IDE.

    • Select Tools → Boards → Select board to use.
      • en_使用ボード

Compiling, Uploading, and Running Sketch

  • In Arduino IDE, select Sketch → Upload to compile and upload the sketch.
    • en_書き込み
  • When the upload completes, the sketch runs and the LED flashes at 1.0-second intervals.
Clone this wiki locally