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
--- /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
--- /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
--- /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
--- /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