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 float x,y,z; 00008 int xp,yp; 00009 00010 float a = 9; 00011 float r = 12; 00012 float b = 5; 00013 00014 float dt = 0.05; 00015 00016 float x1 = 0.1; 00017 float y1 = 0; 00018 float z1 = 0; 00019 00020 while(1) 00021 00022 { 00023 00024 x = x1+(-a*x1+a*y1)*dt; 00025 y = y1+(r*x1-y1-x1*z1)*dt; 00026 z = z1+(x1*y1-b*z1)*dt; 00027 00028 xp = (int)floor(z*9); 00029 yp = (int)floor(y*10); 00030 00031 lcd.pixel(20+xp,160+yp,WHITE); 00032 00033 x1 = x; 00034 y1 = y; 00035 z1 = z; 00036 00037 } 00038 00039 }
Generated on Thu Jul 14 2022 18:46:27 by
1.7.2