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 
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 };
Emits pulses of infrared (IR) light using the IR LEDs on the Zumo 32U4 Main Board.
static void stop()
Stops emitting IR pulses.
static void start(Direction direction, uint16_t brightness, uint16_t period=defaultPeriod)
Starts emitting IR pulses.
static const uint16_t defaultPeriod