mirror of
git://projects.qi-hardware.com/ben-blinkenlights.git
synced 2024-11-23 20:17:30 +02:00
ubb-la/try.c: run the GUI with fake data
This commit is contained in:
parent
65a8578bd2
commit
2d49a73aad
@ -21,13 +21,16 @@ LDLIBS = $(LIBUBB) -lm -lrt -lSDL -lSDL_gfx -lpthread -ldl
|
||||
MAIN = ubb-la
|
||||
OBJS = ubb-la.o gui.o
|
||||
|
||||
.PHONY: all static clean spotless
|
||||
.PHONY: all static host clean spotless
|
||||
|
||||
all: $(MAIN)
|
||||
|
||||
static:
|
||||
$(MAKE) LDFLAGS=-static
|
||||
|
||||
host:
|
||||
$(MAKE) CC=cc LIBUBB= MAIN=try OBJS="gui.o try.o"
|
||||
|
||||
$(MAIN): $(OBJS)
|
||||
|
||||
clean:
|
||||
|
16
ubb-la/try.c
Normal file
16
ubb-la/try.c
Normal file
@ -0,0 +1,16 @@
|
||||
#include <stdint.h>
|
||||
|
||||
#include "gui.h"
|
||||
|
||||
|
||||
int main(void)
|
||||
{
|
||||
static uint8_t buf[4000];
|
||||
int i;
|
||||
|
||||
for (i = 0; i != 8000; i++)
|
||||
buf[i >> 1] |= (i & 0xf) << 4*(~i & 1);
|
||||
gui_init();
|
||||
gui(buf, 0, 8000);
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user