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.
Loptica.h
- Committer:
- Vato
- Date:
- 2014-06-05
- Revision:
- 0:a5f6ba8c378e
File content as of revision 0:a5f6ba8c378e:
#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