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 = 1.586; 00014 float b = 1.124; 00015 float c = 0.281; 00016 00017 float x1 = 1; 00018 float y1 = 1; 00019 float z1 = 1; 00020 00021 while(1) 00022 00023 { 00024 00025 x = a+y1-z1*y1; 00026 y = b+z1-x1*z1; 00027 z = c+x1-y1*x1; 00028 00029 xp = (int)floor(x*80); 00030 yp = (int)floor(y*160); 00031 00032 lcd.pixel(20+xp,80+yp,n); 00033 00034 x1 = x; 00035 y1 = y; 00036 z1 = z; 00037 00038 } 00039 00040 }
Generated on Sun Jul 17 2022 09:06:54 by
1.7.2