Skip to content
MikiyaKobayashi edited this page Jul 31, 2025 · 19 revisions

Precautions when using the RL78 Arduino Library

  • Below are notes when using the RL78 Arduino Library.
  • For details, please check the link of each applicable product.

Unable to upload during serial communication on Linux

Print.h cannot be included

All interrupt pins become input ports when attachInterrupt() is executed

Executing analogReference() sets a specific port to analog settings

The return value of the Random() is only 15 bits

  • Applicable product

LED doesn't blink when using the sample sketch "blink"

Not change the input settings when analogRead() is called

PWM waveform is not output when analogWrite() is called

  • Applicable product

Some pins cannot be used as transmit pins in SoftwareSerial

Calling pinMode() does not allow for the digital output setting

Calling digitalRead() does not read the input value

SCL and SDA cannot be used in pinMode() and digitalRead()

Verify/Compile with Trigonometric functions library will result in an error

Including certain header files causes build errors due to duplicate functions

After calling tone() and noTone(), the digital output by digitalWrite() may not be controlled properly for the pins specified by these functions

When tone() is called with a specific pin, the frequency of the square wave that was previously output by tone() from another pin is not correctly maintained

Clone this wiki locally