Kamil Ondrousek / Mbed 2 deprecated Tinkerbell
Revision:
0:db833ae9852c
Child:
1:1ea2331f9cbe
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Dec 23 14:50:35 2010 +0000
@@ -0,0 +1,33 @@
+#include "TFT_4DGL.h"
+
+TFT_4DGL lcd(p9,p10,p11);
+
+int main() {
+   
+float a = 0.9;
+float b = -0.6013;
+float c = 2;
+float d = 0.5;
+
+float x = -0.72;
+float y = -0.64;
+
+int xout = 0;
+int yout = 0;
+
+   lcd.baudrate(600000);
+ 
+ while (1) {
+ 
+ double oldX = x;
+    
+    x = pow(x,2)-pow(y,2)+a*x+b*y;
+    y = 2*oldX*y+c*oldX+d*y;
+            
+    xout = 210+(x*135);
+    yout = 170+(y*105); 
+   
+    lcd.pixel(yout,xout,WHITE);
+  
+}
+}
\ No newline at end of file