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,dt; 00008 int xp,yp; 00009 00010 float a = 1.111; 00011 float b = 1.479; 00012 float f = 4.494; 00013 float g = 0.44; 00014 00015 x1 = 1; 00016 y1 = 1; 00017 z1 = 1; 00018 00019 dt = 0.135; 00020 00021 while(1) 00022 00023 { 00024 00025 x = x1+(-a*x1-pow(y1,2)-pow(z1,2)+a*f)*dt; 00026 y = y1+(-y1+x1*y1-b*x1*z1+g)*dt; 00027 z = z1+(-z1+b*x1*y1+x1*z1)*dt; 00028 00029 xp = (int)floor(x*35); 00030 yp = (int)floor(y*39); 00031 00032 lcd.pixel(120+xp,140+yp,WHITE); 00033 00034 x1 = x; 00035 y1 = y; 00036 z1 = z; 00037 00038 } 00039 00040 }
Generated on Mon Jul 18 2022 05:23:39 by
