-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.c
38 lines (32 loc) · 826 Bytes
/
main.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <math.h>
#include <string.h> /* memcpy, memset */
#include <unistd.h>
#include <ncurses.h> //terminal output
#include <panel.h>
#include "Display.h"
#include <pthread.h>
int number = 3;
int main(int argc,char *argv[])
{
int counter = 0;
int i;
char text[10];
initDisplay(number);
addMonitor("Data Stream", 1);
addMonitor("Menu", 3);
addMonitor("Debug", 2);
while (displayActive()) {
sprintf(text, "%d", i);
writeLine(0, text,-1);
writeLine(1, readInput(1), -1);
writeLine(2, readInput(2), -1);
i++;
sleep(1);
}
endDisplay();
printf("were done\n");
return 0;
}