Zumo32U4 library
Zumo32U4IRPulses.h
Go to the documentation of this file.
1
// Copyright Pololu Corporation. For more information, see http://www.pololu.com/
2
5
#pragma once
6
7
#include <stdint.h>
8
24
class
Zumo32U4IRPulses
25
{
26
public
:
27
30
enum
Direction
31
{
33
Left
= 0,
34
36
Right
= 1
37
};
38
40
static
const
uint16_t
defaultPeriod
= 420;
41
55
static
void
start
(
Direction
direction, uint16_t brightness,
56
uint16_t period =
defaultPeriod
);
57
62
static
void
stop
();
63
};
Zumo32U4IRPulses
Emits pulses of infrared (IR) light using the IR LEDs on the Zumo 32U4 Main Board.
Definition:
Zumo32U4IRPulses.h:25
Zumo32U4IRPulses::Direction
Direction
Definition:
Zumo32U4IRPulses.h:31
Zumo32U4IRPulses::Left
@ Left
Definition:
Zumo32U4IRPulses.h:33
Zumo32U4IRPulses::Right
@ Right
Definition:
Zumo32U4IRPulses.h:36
Zumo32U4IRPulses::stop
static void stop()
Stops emitting IR pulses.
Definition:
Zumo32U4IRPulses.cpp:74
Zumo32U4IRPulses::start
static void start(Direction direction, uint16_t brightness, uint16_t period=defaultPeriod)
Starts emitting IR pulses.
Definition:
Zumo32U4IRPulses.cpp:7
Zumo32U4IRPulses::defaultPeriod
static const uint16_t defaultPeriod
Definition:
Zumo32U4IRPulses.h:40
Generated by
1.9.4