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
25class MSGEQ7
26{
27private:
35 std::array<uint16_t, 7> band_results;
36
37public:
45 MSGEQ7(uint strobe_gpio, uint reset_gpio, uint signal_out);
50 ~MSGEQ7();
56 std::array<uint16_t, 7> get_spectrum();
57};
58
~MSGEQ7()
Destroy the MSGEQ7 object.
Definition msgeq7.cpp:19
uint strobe_gpio
the GPIO pin the send strobe signal to the MSGEQ7 device
Definition msgeq7.h:29
MSGEQ7(uint strobe_gpio, uint reset_gpio, uint signal_out)
Construct a new MSGEQ7 object.
Definition msgeq7.cpp:3
uint signal_out
the GPIO pin where the amplitude of the band filter is read
Definition msgeq7.h:33
uint reset_gpio
the GPIO pin the send reset signal to the MSGEQ7 device
Definition msgeq7.h:31
std::array< uint16_t, 7 > band_results
the 7-band resulting measures
Definition msgeq7.h:35
std::array< uint16_t, 7 > get_spectrum()
Get the spectrum object.
Definition msgeq7.cpp:23