C++ DevKit
C++ set of OOP library
Loading...
Searching...
No Matches
msgeq7.h
Go to the documentation of this file.
1
11
#pragma once
12
13
#include "pico/stdlib.h"
14
#include <vector>
15
#include "hardware/adc.h"
16
#include <array>
17
25
class
MSGEQ7
26
{
27
private
:
29
uint strobe_gpio;
31
uint reset_gpio;
33
uint signal_out;
35
std::array<uint16_t, 7> band_results;
36
37
public
:
45
MSGEQ7
(uint strobe_gpio, uint reset_gpio, uint signal_out);
50
~MSGEQ7
();
56
std::array<uint16_t, 7>
get_spectrum
();
57
};
58
MSGEQ7::~MSGEQ7
~MSGEQ7()
Destroy the MSGEQ7 object.
Definition
msgeq7.cpp:19
MSGEQ7::MSGEQ7
MSGEQ7(uint strobe_gpio, uint reset_gpio, uint signal_out)
Construct a new MSGEQ7 object.
Definition
msgeq7.cpp:3
MSGEQ7::get_spectrum
std::array< uint16_t, 7 > get_spectrum()
Get the spectrum object.
Definition
msgeq7.cpp:23
src
device
MSGEQ7
msgeq7.h
Generated by
1.13.1