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.
main.cpp
- Committer:
- JLS
- Date:
- 2010-12-26
- Revision:
- 1:2fa511a62bd2
- Parent:
- 0:3e96eca5ceb8
File content as of revision 1:2fa511a62bd2:
#include "TFT_4DGL.h"
TFT_4DGL lcd(p9,p10,p11);
int main() {
double x1,y1,z1,x,y,z,t,dt;
int xp,yp;
x1=(y1=(z1=(t=0.0001)));
dt=0.05;
while(1)
{
x = x1+(-(y1+z1))*dt;
y = y1+(x1+0.375*y1)*dt;
z = z1+(2+x1*z1-4*z1)*dt;
t = t+dt;
xp = 135+(int)floor(28*x);
yp = 160+(int)floor(25*y);
lcd.pixel(yp,xp,WHITE);
x1 = x;
y1 = y;
z1 = z;
}
}