aboutsummaryrefslogtreecommitdiffstats
path: root/demos/applications/graph/main.c
diff options
context:
space:
mode:
authorTectu <joel@unormal.org>2012-12-16 08:58:59 -0800
committerTectu <joel@unormal.org>2012-12-16 08:58:59 -0800
commit4743790cd40832205f701a280acd622cd003a9fd (patch)
tree088919aae5e2673621f6090dc79adac862c8c8a6 /demos/applications/graph/main.c
parent09fc35864aa695cc46dcb95ed3951a365622b709 (diff)
parentf31a1f7f4aeb09bc09d49944daaf2f38fddd94e7 (diff)
downloaduGFX-4743790cd40832205f701a280acd622cd003a9fd.tar.gz
uGFX-4743790cd40832205f701a280acd622cd003a9fd.tar.bz2
uGFX-4743790cd40832205f701a280acd622cd003a9fd.zip
Merge pull request #26 from inmarket/master
Many tidyups and restructure.
Diffstat (limited to 'demos/applications/graph/main.c')
-rw-r--r--demos/applications/graph/main.c51
1 files changed, 0 insertions, 51 deletions
diff --git a/demos/applications/graph/main.c b/demos/applications/graph/main.c
deleted file mode 100644
index bd50cf60..00000000
--- a/demos/applications/graph/main.c
+++ /dev/null
@@ -1,51 +0,0 @@
-#include "ch.h"
-#include "hal.h"
-#include "gdisp.h"
-#include "graph.h"
-#include "math.h"
-
-int data[5][2] = {
- { 0, 0 },
- { 10, 10 },
- { 20, 20 },
- { 30, 30 },
- { 40, 40 }
-};
-
-int main(void) {
- halInit();
- chSysInit();
-
- gdispInit();
- gdispSetOrientation(GDISP_ROTATE_90);
- gdispClear(Black);
-
- Graph G1 = {
- gdispGetWidth()/2,
- gdispGetHeight()/2,
- -150,
- 150,
- -110,
- 110,
- 21,
- 5,
- TRUE,
- TRUE,
- White,
- Grey,
- };
-
- graphDrawSystem(&G1);
-
- uint16_t i;
- for(i = 0; i < 2500; i++)
- graphDrawDot(&G1, i-170, 80*sin(2*0.2*M_PI*i/180), 1, Blue);
-
- for(i = 0; i < 2500; i++)
- graphDrawDot(&G1, i/5-150, 95*sin(2*0.2*M_PI*i/180), 1, Green);
-
- while(TRUE) {
- chThdSleepMilliseconds(100);
- }
-}
-