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.
Dependencies: mbed
Bat/Bat.cpp@4:55a0509c4874, 2019-04-16 (annotated)
- Committer:
- shahidsajid
- Date:
- Tue Apr 16 09:48:37 2019 +0000
- Revision:
- 4:55a0509c4874
- Child:
- 6:3e50f2cf4366
Initialised the Bat class;
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| shahidsajid | 4:55a0509c4874 | 1 | #include "Bat.h" |
| shahidsajid | 4:55a0509c4874 | 2 | |
| shahidsajid | 4:55a0509c4874 | 3 | |
| shahidsajid | 4:55a0509c4874 | 4 | Bat::Bat() |
| shahidsajid | 4:55a0509c4874 | 5 | { |
| shahidsajid | 4:55a0509c4874 | 6 | |
| shahidsajid | 4:55a0509c4874 | 7 | } |
| shahidsajid | 4:55a0509c4874 | 8 | |
| shahidsajid | 4:55a0509c4874 | 9 | Bat::~Bat() |
| shahidsajid | 4:55a0509c4874 | 10 | { |
| shahidsajid | 4:55a0509c4874 | 11 | |
| shahidsajid | 4:55a0509c4874 | 12 | } |
| shahidsajid | 4:55a0509c4874 | 13 | void Bat::init(int x,int y) |
| shahidsajid | 4:55a0509c4874 | 14 | { |
| shahidsajid | 4:55a0509c4874 | 15 | |
| shahidsajid | 4:55a0509c4874 | 16 | _x = 42; |
| shahidsajid | 4:55a0509c4874 | 17 | _y = 15; |
| shahidsajid | 4:55a0509c4874 | 18 | } |
| shahidsajid | 4:55a0509c4874 | 19 | void Bat::draw(N5110 &lcd){ |
| shahidsajid | 4:55a0509c4874 | 20 | lcd.drawLine(38,36,41,36,1); |
| shahidsajid | 4:55a0509c4874 | 21 | lcd.drawRect(41,35,6,3,FILL_BLACK); |
| shahidsajid | 4:55a0509c4874 | 22 | } |