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 a,b,c,x,y,xa,ya; 00008 00009 int xout = 0; 00010 int yout = 0; 00011 00012 a = 0.9; 00013 b = 2; 00014 c = 3; 00015 00016 int n = WHITE; 00017 int m = 0; 00018 00019 xa = 3; 00020 ya = 3; 00021 00022 00023 while (1) { 00024 00025 x = ya-1-sqrt(abs(b*xa-1-c))*((xa-1)/(xa-1)); 00026 y = a-xa-1; 00027 00028 m++; 00029 00030 if (m==500) { 00031 00032 m = 0; 00033 00034 n = rand(); 00035 00036 } 00037 00038 xout = 130+(x*5); 00039 yout = 145+(y*6); 00040 00041 lcd.pixel(xout,yout,n); 00042 00043 xa = x; 00044 ya = y; 00045 } 00046 }
Generated on Thu Jul 21 2022 17:24:53 by
1.7.2