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:
- 2011-01-03
- Revision:
- 0:c2992d2f3c66
File content as of revision 0:c2992d2f3c66:
#include "TFT_4DGL.h"
TFT_4DGL lcd(p9,p10,p11);
int main() {
double x1,y1,z1,x,y,z,dt;
int xp,yp;
float a = 2.017;
x1 = -0.9;
y1 = 0;
z1 = 0.5;
dt = 0.01;
while(1)
{
x = x1+(y1)*dt;
y = y1+(z1)*dt;
z = z1+(-a*z1+pow(y1,2)-x1)*dt;
xp = 55+(int)floor(34*x);
yp = 135+(int)floor(39*y);
lcd.pixel(yp,xp,WHITE);
x1 = x;
y1 = y;
z1 = z;
}
}