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 = 0.1; 00008 00009 float pi = 3.141592654; 00010 00011 float x = 0.5; 00012 float y = 0.5; 00013 00014 int xout = 0; 00015 int yout = 0; 00016 00017 while (1) { 00018 00019 double oldX = x; 00020 00021 x = fmod(oldX+y+a*cos(2*pi*y),1); 00022 y = fmod(oldX+2*y,1); 00023 00024 xout = (x*320); 00025 yout = (y*240); 00026 00027 lcd.pixel(yout,xout,WHITE); 00028 00029 } 00030 }
Generated on Wed Jul 13 2022 07:24:29 by
