#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <alsa/asoundlib.h>
#include <dlfcn.h>
#include <wiringPi.h>
#include <wiringPiSPI.h>
#include "pv_porcupine.h"
Go to the source code of this file.
|
static const uint8_t | BLUE_RGB [3] = {0, 0, 255} |
|
static const uint8_t | GREEN_RGB [3] = {0, 255, 0} |
|
static volatile bool | is_interrupted = false |
|
static const uint8_t | OFF_RGB [3] = {0, 0, 0} |
|
static const uint8_t | ORANGE_RGB [3] = {255, 128, 0} |
|
static const uint8_t | PINK_RGB [3] = {255, 51, 153} |
|
static const uint8_t | PURPLE_RGB [3] = {128, 0, 128} |
|
static const uint8_t | RED_RGB [3] = {255, 0, 0} |
|
static const uint8_t | WHITE_RGB [3] = {255, 255, 255} |
|
static const uint8_t | YELLOW_RGB [3] = {255, 255, 51} |
|
◆ interrupt_handler()
void interrupt_handler |
( |
int |
_ | ) |
|
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
◆ set_color()
static void set_color |
( |
const uint8_t |
rgb[3] | ) |
|
|
static |
◆ BLUE_RGB
const uint8_t BLUE_RGB[3] = {0, 0, 255} |
|
static |
◆ GREEN_RGB
const uint8_t GREEN_RGB[3] = {0, 255, 0} |
|
static |
◆ is_interrupted
volatile bool is_interrupted = false |
|
static |
◆ OFF_RGB
const uint8_t OFF_RGB[3] = {0, 0, 0} |
|
static |
◆ ORANGE_RGB
const uint8_t ORANGE_RGB[3] = {255, 128, 0} |
|
static |
◆ PINK_RGB
const uint8_t PINK_RGB[3] = {255, 51, 153} |
|
static |
◆ PURPLE_RGB
const uint8_t PURPLE_RGB[3] = {128, 0, 128} |
|
static |
◆ RED_RGB
const uint8_t RED_RGB[3] = {255, 0, 0} |
|
static |
◆ WHITE_RGB
const uint8_t WHITE_RGB[3] = {255, 255, 255} |
|
static |
◆ YELLOW_RGB
const uint8_t YELLOW_RGB[3] = {255, 255, 51} |
|
static |