Zumo32U4 library
|
Main header file for the Zumo32U4 library. More...
#include <FastGPIO.h>
#include <Zumo32U4Buttons.h>
#include <Zumo32U4Buzzer.h>
#include <Zumo32U4Encoders.h>
#include <Zumo32U4IMU.h>
#include <Zumo32U4IRPulses.h>
#include <Zumo32U4LCD.h>
#include <Zumo32U4LineSensors.h>
#include <Zumo32U4Motors.h>
#include <Zumo32U4OLED.h>
#include <Zumo32U4ProximitySensors.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. | |
Main header file for the Zumo32U4 library.
This file includes all the other headers files provided by the library.
Definition in file Zumo32U4.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 57 of file Zumo32U4.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 37 of file Zumo32U4.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 45 of file Zumo32U4.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 70 of file Zumo32U4.h.