#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <signal.h>
#include <stdarg.h>
#include <getopt.h>
#include "clk.h"
#include "gpio.h"
#include "dma.h"
#include "pwm.h"
#include "version.h"
#include "ws2811.h"
Go to the source code of this file.
◆ ARRAY_SIZE
#define ARRAY_SIZE |
( |
|
stuff | ) |
(sizeof(stuff) / sizeof(stuff[0])) |
◆ DMA
◆ GPIO_PIN
◆ HEIGHT
◆ LED_COUNT
◆ STRIP_TYPE
◆ TARGET_FREQ
◆ WIDTH
◆ ctrl_c_handler()
static void ctrl_c_handler |
( |
int |
signum | ) |
|
|
static |
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
◆ matrix_bottom()
void matrix_bottom |
( |
void |
| ) |
|
◆ matrix_clear()
void matrix_clear |
( |
void |
| ) |
|
◆ matrix_raise()
void matrix_raise |
( |
void |
| ) |
|
◆ matrix_render()
void matrix_render |
( |
void |
| ) |
|
◆ parseargs()
void parseargs |
( |
int |
argc, |
|
|
char ** |
argv, |
|
|
ws2811_t * |
ws2811 |
|
) |
| |
◆ setup_handlers()
static void setup_handlers |
( |
void |
| ) |
|
|
static |
◆ clear_on_exit
◆ dotcolors
Initial value:=
{
0x00200000,
0x00201000,
0x00202000,
0x00002000,
0x00002020,
0x00000020,
0x00100010,
0x00200010,
}
Definition at line 146 of file main.c.
◆ dotcolors_rgbw
Initial value:=
{
0x00200000,
0x10200000,
0x00002000,
0x10002000,
0x00000020,
0x10000020,
0x00101010,
0x10101010,
}
Definition at line 158 of file main.c.
◆ dotspos
int dotspos[] = { 0, 1, 2, 3, 4, 5, 6, 7 } |
◆ height
◆ led_count
◆ ledstring
Initial value:=
{
.channel =
{
[0] =
{
.invert = 0,
.brightness = 255,
},
[1] =
{
.gpionum = 0,
.count = 0,
.invert = 0,
.brightness = 0,
},
},
}
Definition at line 76 of file main.c.
◆ matrix
◆ running
◆ VERSION
char VERSION[] = "XX.YY.ZZ" |
|
static |
◆ width