1
0
mirror of git://projects.qi-hardware.com/ben-blinkenlights.git synced 2025-04-21 12:27:27 +03:00

ubb-la/: display sample rate and sample interval in the GUI

This commit is contained in:
Werner Almesberger
2013-01-31 00:47:14 -03:00
parent e1be0f242b
commit 5bb086e0e8
4 changed files with 55 additions and 7 deletions

View File

@@ -1,9 +1,10 @@
#include <stdint.h>
#include <stdlib.h>
#include "gui.h"
int main(void)
int main(int argc, char **argv)
{
static uint8_t buf[4000];
int i;
@@ -11,6 +12,6 @@ int main(void)
for (i = 0; i != 8000; i++)
buf[i >> 1] |= (i & 0xf) << 4*(~i & 1);
gui_init();
gui(buf, 0, 8000);
gui(buf, 0, 8000, argv[1] ? atof(argv[1]) : 1e6);
return 0;
}