Kamil Ondrousek
/
Delay-Log
main.cpp
- Committer:
- JLS
- Date:
- 2010-12-25
- Revision:
- 0:c1a2bb86a79d
- Child:
- 1:2e21ada3b00e
File content as of revision 0:c1a2bb86a79d:
#include "TFT_4DGL.h" TFT_4DGL lcd(p9,p10,p11); int main() { float a = 2.27; float x = 0.001; float y = 0.001; int xout = 0; int yout = 0; lcd.baudrate(600000); while (1) { double oldX = x; x = a*oldX*(1-y); y = oldX; xout = 35+(x*250); yout = 15+(y*205); lcd.pixel(yout,xout,WHITE); } }