-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.c
executable file
·51 lines (39 loc) · 982 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
39
40
41
42
43
44
45
46
47
48
49
50
51
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "LCD/LCD.h"
#include "TouchPanel/TouchPanel.h"
#include "semihosting/semihosting.h"
#include "interface_calculator.h"
#include "grammar.h"
//Otzberg
/*IBM Raphsody*/
//static char array[][2000];
int main(void) {
TP_Init();
LCD_Initializtion();
LCD_Clear(Black);
TouchPanel_Calibrate();
IRF_DrawInterface(Blue, Red, Black);
char *expression = calloc(sizeof(char), 256);
/*
expression = "-(5+3)+(5-4*(3-2))*(((3+2*(+5-5*3*4+9)*4)))+4*(5-(-(-(-5))))";
expression = "+60-65+(-(-2+54))+()*()";
expression = "5^(-3)";
expression = "-(-1)+1+5*10^(-10+12*(-1)*(-1)+(+1)-(-1))";
expression = "2^2^2";
expression = ComputeExpression(expression);
printf("%s\n", expression);
*/
while(1) {
getDisplayPoint(&display, Read_Ads7846(), &matrix);
IRF_Work(expression);
//printf("!\n");
}
return 0;
}
/*
* Áàãè:
* 0. ...
*/