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.
Diff: Loptica.h
- Revision:
- 0:a5f6ba8c378e
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Loptica.h Thu Jun 05 17:37:09 2014 +0000 @@ -0,0 +1,29 @@ +#ifndef LOPTICA_H +#define REKET_H + +#include "mbed.h" +#include "N5110.h" + +class Loptica { + int x, y; + int x_korak, y_korak; +public: + Loptica(int x1, int y1, int x1_korak, int y1_korak) : x(x1), y(y1), x_korak(x1_korak), y_korak(y1_korak) {} + + void setX(int broj); + void setY(int broj); + + int dajX(); + int dajY(); + + int dajKorakX(); + int dajKorakY(); + + void postaviKorak(int xKorak, int yKorak); + + void crtajLopticu(N5110 &display); + void brisiLopticu(N5110 &display); + void osvjeziPoziciju(); +}; + +#endif \ No newline at end of file