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:eec1e0cd07a1
- Child:
- 1:49e438c33468
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Sat Dec 25 13:49:40 2010 +0000
@@ -0,0 +1,29 @@
+#include "TFT_4DGL.h"
+
+TFT_4DGL lcd(p9,p10,p11);
+
+int main() {
+
+ float x = 0.5;
+ float y = 3.7;
+
+ int xout = 0;
+ int yout = 0;
+
+ lcd.baudrate(600000);
+
+ while (1) {
+
+ double oldX = x;
+ double oldY = y;
+
+ x = 1+abs(oldX)-oldY;
+ y = oldX;
+
+ xout = 90+(x*28);
+ yout = 70+(y*21);
+
+ lcd.pixel(yout,xout,WHITE);
+
+}
+}
\ No newline at end of file