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 a = 1.7; 00008 float b = 0.5; 00009 00010 float x = -0.1; 00011 float y = 0.1; 00012 00013 int xout = 0; 00014 int yout = 0; 00015 00016 while (1) { 00017 00018 double oldX = x; 00019 00020 x = 1-a*abs(oldX)+b*y; 00021 y = oldX; 00022 00023 xout = 160+(x*100); 00024 yout = 120+(y*80); 00025 00026 lcd.pixel(yout,xout,WHITE); 00027 00028 } 00029 }
Generated on Mon Jul 18 2022 08:53:20 by
