From 8e0db030b7ac97d2be1f854f90256e2c7d29ce9c Mon Sep 17 00:00:00 2001 From: CoorFun Date: Tue, 1 Jan 2019 22:58:19 +0100 Subject: [PATCH] fix --- example/example.c | 3 +-- makefile | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/example/example.c b/example/example.c index 39adaa5..2c79bf9 100644 --- a/example/example.c +++ b/example/example.c @@ -3,12 +3,11 @@ #include int main(int argc, char *argv[]) { - int i; int bri = 0; int dir = 0; int time = 0; cAPA102_Init(12, 0, 0, 31); - + int i; for ( i = 0; i < 3; i++) cAPA102_Set_Pixel_4byte(i, 0xFF0000); //cAPA102_Set_Pixel_RGB(i, 255, 0, 0); diff --git a/makefile b/makefile index e9ab0e4..a711ef9 100644 --- a/makefile +++ b/makefile @@ -5,7 +5,7 @@ CFLAGS = -Wall\ SOURCES = src/cAPA102.c -test = cAPA102_example +example = cAPA102_example all: $(example)