Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: main.cpp
- Revision:
- 0:c6e56e9f3cdb
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Sat Jan 08 17:55:24 2011 +0000
@@ -0,0 +1,35 @@
+#include "TFT_4DGL.h"
+
+TFT_4DGL lcd(p9,p10,p11);
+
+int main() {
+
+ float a = 3.7;
+
+ float x = 0.1;
+ float y = 0;
+
+ int xout = 0;
+ int yout = 0;
+
+ while (1) {
+
+ double oldX = x;
+
+ x = a*oldX*(1-oldX);
+ y++;
+
+ if (y>=640){
+
+ y = 0;
+ lcd.cls();
+
+ }
+
+ xout = -80+(x*340);
+ yout = (y/2);
+
+ lcd.pixel(xout,yout,WHITE);
+
+}
+}
\ No newline at end of file