MakeBlock Drive Updated Updated library for MakeBlock Ranger

Loading...
Searching...
No Matches
MeBuzzer.h
Go to the documentation of this file.
1
43#ifndef MeBuzzer_H
44#define MeBuzzer_H
45
46#include <stdint.h>
47#include <stdbool.h>
48#include <Arduino.h>
49#include "MeConfig.h"
50
51#ifdef ME_PORT_DEFINED
52#include "MePort.h"
53#endif // ME_PORT_DEFINED
54
60 class MeBuzzer : public MePort
61{
62 public:
63#ifdef ME_PORT_DEFINED
70 MeBuzzer();
71
78 MeBuzzer(uint8_t port);
79
88 MeBuzzer(uint8_t port, uint8_t slot);
89#else // ME_PORT_DEFINED
95 MeBuzzer(int pin);
96#endif // ME_PORT_DEFINED
111 void setpin(int pin);
112
131 void tone(int pin, uint16_t frequency, uint32_t duration);
132
149 void tone(uint16_t frequency, uint32_t duration = 0);
150
165 void noTone(int pin);
166
181 void noTone();
182};
183#endif
MeConfig.h
Configuration file of library.
MePort.h
Header for MePort.cpp module.
MeBuzzer
Driver for Me Buzzer module.
Definition MeBuzzer.h:61
MeBuzzer::noTone
void noTone()
Definition MeBuzzer.cpp:224
MeBuzzer::MeBuzzer
MeBuzzer()
Definition MeBuzzer.cpp:57
MeBuzzer::tone
void tone(int pin, uint16_t frequency, uint32_t duration)
Definition MeBuzzer.cpp:142
MePort
Port Mapping for RJ25.
Definition MePort.h:128
MePort::pin
uint8_t pin(void)
Definition MePort.cpp:427