1
0
mirror of git://projects.qi-hardware.com/ben-blinkenlights.git synced 2024-11-05 10:32:28 +02:00

ubb-la/try.c: run the GUI with fake data

This commit is contained in:
Werner Almesberger 2013-01-30 21:20:08 -03:00
parent 65a8578bd2
commit 2d49a73aad
2 changed files with 20 additions and 1 deletions

View File

@ -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
View 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;
}