Quick_Start_Guide_Arduino_IDE_Ver2_Add_Boards_Manager - renesas/Arduino GitHub Wiki
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”
- The example below describes the procedure for “Windows Win 10 and newer, 64 bits”
- Download the version of Arduino IDE that matches the type of PC you are using.
Launching Arduino IDE
- Double-click the icon on the desktop to launch Arduino IDE.
Specifying the Board Manager File for the Fast Prototyping Board
- Select File → Preferences and specify the following for Additional Boards Manager URLs:
Using Boards Manager to Install Tools
- Select Tools → Board → Boards Manager….
- In the text entry box, enter RL78 and perform a search, then click the Install button.
- In the text entry box, enter RL78 and perform a search, then click the Install button.
- 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.
// 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.
-
Select the board in Arduino IDE.
- Select Tools → Boards → Select board to use.
- Select Tools → Boards → Select board to use.
Compiling, Uploading, and Running Sketch
- In Arduino IDE, select Sketch → Upload to compile and upload the sketch.
- When the upload completes, the sketch runs and the LED flashes at 1.0-second intervals.