Kamil Ondrousek / Mbed 2 deprecated Thomas
Revision:
0:dea878cdd967
diff -r 000000000000 -r dea878cdd967 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Dec 27 20:01:23 2010 +0000
@@ -0,0 +1,38 @@
+#include "TFT_4DGL.h"
+
+TFT_4DGL lcd(p9,p10,p11);
+
+int main() {
+
+    double b,x1,y1,z1,x,y,z,t,dt;
+    int   xp,yp;
+   
+    x1 = 0.1;
+    y1 = 0;
+    z1 = 0;
+    
+    b = 0.19;
+    
+    dt = 0.05;
+
+    while(1)
+    
+    {
+    
+        x = x1+(-b*x1+sin(y1))*dt;
+        y = y1+(-b*y1+sin(z1))*dt;
+        z = z1+(-b*z1+sin(x1))*dt;
+        t = t+dt;
+
+        xp = 160+(int)floor(35*x);
+        yp = 120+(int)floor(25*z);
+
+        lcd.pixel(yp,xp,WHITE);
+      
+        x1 = x;
+        y1 = y;
+        z1 = z;
+
+    }
+ 
+}
\ No newline at end of file