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.
Laser Class Reference
#include <Laser.h>
Public Member Functions | |
| Laser () | |
| Constructor declaration. | |
| ~Laser () | |
| Deconstructor declaration. | |
| void | init () |
| Initialises the laser off screen with a set velocity. | |
| void | draw (N5110 &lcd) |
| Draws the Laser at at its current coordinates on the LCD. | |
| void | update () |
| Update the Laser's y coordinate based on its velocity. | |
| void | set_posx (int x) |
| Sets the Laser's x coordinate. | |
| void | set_posy (int y) |
| Sets the Laser's x coordinate. | |
| int | get_x () |
| Retrieve the Laser's current x coordinate. | |
| int | get_y () |
| Retrieve the Laser's current y coordinate. | |
Detailed Description
Laser Class.
- Date:
- May 2019
Definition at line 14 of file Laser.h.
Constructor & Destructor Documentation
Member Function Documentation
| void draw | ( | N5110 & | lcd ) |
| int get_x | ( | ) |
| int get_y | ( | ) |
| void init | ( | ) |
| void set_posx | ( | int | x ) |
| void set_posy | ( | int | y ) |
Generated on Wed Jul 13 2022 09:05:52 by
1.7.2