From 07f34835358ef65de310934ae726b66c7ca46f68 Mon Sep 17 00:00:00 2001 From: Andrew Hannam Date: Thu, 6 Dec 2012 18:45:54 +1000 Subject: Restructure Create global include file called gfx.h which knows about sub-system dependancies. Deprecate Touchscreen (GINPUT touch is now working properly) Merge Graph into GWIN Change directory structure to reflect sub-system structure Many small bugs fixed Split Nokia6610 gdisp driver into GE8 and GE12 controller versions Fixed broken demos. GFX sub-systems are now clearly defined and new ones should be much easier to add. --- demos/applications/graph/main.c | 51 ----------------------------------------- 1 file changed, 51 deletions(-) delete mode 100644 demos/applications/graph/main.c (limited to 'demos/applications/graph/main.c') 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); - } -} - -- cgit v1.2.3