Romi32U4 library
|
Main header file for the Romi32U4 library. More...
#include <FastGPIO.h>
#include <Romi32U4Buttons.h>
#include <Romi32U4Buzzer.h>
#include <Romi32U4Encoders.h>
#include <Romi32U4LCD.h>
#include <Romi32U4Motors.h>
Go to the source code of this file.
Functions | |
void | ledRed (bool on) |
Turns the red user LED (RX) on or off. More... | |
void | ledYellow (bool on) |
Turns the yellow user LED on pin 13 on or off. More... | |
void | ledGreen (bool on) |
Turns the green user LED (TX) on or off. More... | |
bool | usbPowerPresent () |
Returns true if USB power is detected. More... | |
uint16_t | readBatteryMillivolts () |
Reads the battery voltage and returns it in millivolts. More... | |
Main header file for the Romi32U4 library.
This file includes all the other headers files provided by the library.
Definition in file Romi32U4.h.
|
inline |
Turns the green user LED (TX) on or off.
on | 1 to turn on the LED, 0 to turn it off. |
The green user LED is pin PD5, which is also known as TXLED. The Arduino core code uses this LED to indicate when it receives data over USB, so it might be hard to control this LED when USB is connected.
Definition at line 52 of file Romi32U4.h.
|
inline |
Turns the red user LED (RX) on or off.
on | 1 to turn on the LED, 0 to turn it off. |
The red user LED is on pin 17, which is also known as PB0, SS, and RXLED. The Arduino core code uses this LED to indicate when it receives data over USB, so it might be hard to control this LED when USB is connected.
Definition at line 32 of file Romi32U4.h.
|
inline |
Turns the yellow user LED on pin 13 on or off.
on | 1 to turn on the LED, 0 to turn it off. |
Definition at line 40 of file Romi32U4.h.
|
inline |
Reads the battery voltage and returns it in millivolts.
If this function returns a number below 5500, the actual battery voltage might be significantly lower than the value returned.
Definition at line 74 of file Romi32U4.h.
|
inline |
Returns true if USB power is detected.
This function returns true if power is detected on the board's USB port and returns false otherwise. It uses the ATmega32U4's VBUS line, which is directly connected to the power pin of the USB connector.
Definition at line 65 of file Romi32U4.h.