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 int xp,yp; 00008 00009 int n = WHITE; 00010 00011 float x,y,z; 00012 00013 float a = 35; 00014 float b = 3; 00015 float c = 28; 00016 00017 float dt = 0.001; 00018 00019 float x1 = 1; 00020 float y1 = 1; 00021 float z1 = 1; 00022 00023 00024 x = x1; 00025 y = y1; 00026 z = z1; 00027 00028 while(1) 00029 00030 { 00031 00032 x = x1+(a*(y1-x1))*dt; 00033 y = y1+((c-a)*x1-(x1*z1)+(c*y1))*dt; 00034 z = z1+((x1*y1)-(b*z1))*dt; 00035 00036 xp = (int)floor(5*x); 00037 yp = (int)floor(3*z); 00038 00039 lcd.pixel(20+yp,150+xp,n); 00040 00041 x1 = x; 00042 y1 = y; 00043 z1 = z; 00044 00045 } 00046 00047 }
Generated on Fri Jul 22 2022 12:23:26 by
1.7.2