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
00001 #include "TFT_4DGL.h" 00002 00003 TFT_4DGL lcd(p9,p10,p11); 00004 00005 int main() { 00006 00007 double x1,y1,z1,x,y,z,t,dt; 00008 int xp,yp; 00009 00010 float k = 2; 00011 float a = 6.7; 00012 00013 x1 = 1; 00014 y1 = 0; 00015 z1 = 4.5; 00016 00017 dt = 0.01; 00018 00019 while(1) 00020 00021 { 00022 00023 x = x1+(-k*x1+a*y1-y1*z1)*dt; 00024 y = y1+(x1)*dt; 00025 z = z1+(-z+pow(y1,2))*dt; 00026 t = t+dt; 00027 00028 xp = 160+(int)floor(14*x); 00029 yp = 120+(int)floor(19*y); 00030 00031 lcd.pixel(yp,xp,WHITE); 00032 00033 x1 = x; 00034 y1 = y; 00035 z1 = z; 00036 00037 } 00038 00039 }
Generated on Tue Jul 19 2022 23:33:38 by
1.7.2