Basin chaotic map - 640x480 vga

Dependencies:   fastlib mbed vga640x480g

Files at this revision

API Documentation at this revision

Comitter:
JLS
Date:
Sat Mar 10 22:10:50 2012 +0000
Commit message:

Changed in this revision

fastlib.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
vga640x480g.lib Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r b4b0ac1d81a2 fastlib.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/fastlib.lib	Sat Mar 10 22:10:50 2012 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/Ivop/code/fastlib/#bc492a93e116
diff -r 000000000000 -r b4b0ac1d81a2 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sat Mar 10 22:10:50 2012 +0000
@@ -0,0 +1,25 @@
+#include "mbed.h"
+#include "vga640x480g.h"
+
+int main() {
+
+    init_vga();
+    vga_cls();
+    vga_box(0,0,639,479,WHITE);
+    vga_putstring(10,10,"Basin chaotic map",WHITE);
+    
+    float a = 0.4;
+    float x = 0.1;
+    float y = 0;  
+ 
+ while(1) {
+ 
+    double nx = x;
+    x = nx*y+a*nx-y;
+    y = nx+y;
+    
+    vga_plot(271+(194*x),348+(168*y),WHITE);
+   
+   }
+
+  }
\ No newline at end of file
diff -r 000000000000 -r b4b0ac1d81a2 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sat Mar 10 22:10:50 2012 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/63bcd7ba4912
diff -r 000000000000 -r b4b0ac1d81a2 vga640x480g.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/vga640x480g.lib	Sat Mar 10 22:10:50 2012 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/gertk/code/vga640x480g/#821e34a87609