Gingerbreadman fractal map

Dependencies:   mbed

Revision:
0:eec1e0cd07a1
Child:
1:49e438c33468
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sat Dec 25 13:49:40 2010 +0000
@@ -0,0 +1,29 @@
+#include "TFT_4DGL.h"
+
+TFT_4DGL lcd(p9,p10,p11);
+
+int main() {
+   
+    float x = 0.5;
+    float y = 3.7;
+
+    int xout = 0;
+    int yout = 0;
+
+   lcd.baudrate(600000);
+ 
+ while (1) {
+ 
+    double oldX = x;
+    double oldY = y;
+  
+    x = 1+abs(oldX)-oldY;
+    y = oldX;
+    
+    xout = 90+(x*28);
+    yout = 70+(y*21);
+   
+    lcd.pixel(yout,xout,WHITE);
+  
+}
+}
\ No newline at end of file