Dezibot 4
InfraredLED Class Reference

#include <InfraredLight.h>

Public Member Functions

 InfraredLED (uint8_t pin, ledc_timer_t timer, ledc_channel_t channel)
 
void begin (void)
 
void turnOn (void)
 enables selected LED More...
 
void turnOff (void)
 disables selected LED More...
 
void setState (bool state)
 changes state of selected LED depending on the state More...
 
void sendFrequency (uint16_t frequency)
 starts flashing the IRLed with a specific frequency Won't stop automatically, must be stopped by calling any other IR-Method More...
 

Protected Attributes

uint8_t ledPin
 
ledc_timer_t timer
 
ledc_channel_t channel
 
ledc_timer_config_t pwmTimer
 
ledc_channel_config_t pwmChannel
 

Detailed Description

Definition at line 18 of file InfraredLight.h.

Constructor & Destructor Documentation

◆ InfraredLED()

InfraredLED::InfraredLED ( uint8_t  pin,
ledc_timer_t  timer,
ledc_channel_t  channel 
)

Definition at line 5 of file InfraredLED.cpp.

Member Function Documentation

◆ begin()

void InfraredLED::begin ( void  )

Definition at line 11 of file InfraredLED.cpp.

+ Here is the caller graph for this function:

◆ sendFrequency()

void InfraredLED::sendFrequency ( uint16_t  frequency)

starts flashing the IRLed with a specific frequency Won't stop automatically, must be stopped by calling any other IR-Method

Parameters
frequency

Definition at line 53 of file InfraredLED.cpp.

◆ setState()

void InfraredLED::setState ( bool  state)

changes state of selected LED depending on the state

Parameters
ledwhich led will be affected
statetrue if led should be turned on, else false

Definition at line 42 of file InfraredLED.cpp.

+ Here is the caller graph for this function:

◆ turnOff()

void InfraredLED::turnOff ( void  )

disables selected LED

Parameters
led

Definition at line 38 of file InfraredLED.cpp.

+ Here is the call graph for this function:

◆ turnOn()

void InfraredLED::turnOn ( void  )

enables selected LED

Definition at line 34 of file InfraredLED.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ channel

ledc_channel_t InfraredLED::channel
protected

Definition at line 50 of file InfraredLight.h.

◆ ledPin

uint8_t InfraredLED::ledPin
protected

Definition at line 48 of file InfraredLight.h.

◆ pwmChannel

ledc_channel_config_t InfraredLED::pwmChannel
protected

Definition at line 52 of file InfraredLight.h.

◆ pwmTimer

ledc_timer_config_t InfraredLED::pwmTimer
protected

Definition at line 51 of file InfraredLight.h.

◆ timer

ledc_timer_t InfraredLED::timer
protected

Definition at line 49 of file InfraredLight.h.


The documentation for this class was generated from the following files: