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.
functions/functions.cpp@2:430dcf420840, 2020-06-05 (annotated)
- Committer:
- jahanzebkhan
- Date:
- Fri Jun 05 22:51:49 2020 +0000
- Revision:
- 2:430dcf420840
Final Submission. I have read and agreed with Statement of Academic integrity.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jahanzebkhan | 2:430dcf420840 | 1 | #include "functions.h" |
jahanzebkhan | 2:430dcf420840 | 2 | |
jahanzebkhan | 2:430dcf420840 | 3 | Functions::Functions() |
jahanzebkhan | 2:430dcf420840 | 4 | { |
jahanzebkhan | 2:430dcf420840 | 5 | } |
jahanzebkhan | 2:430dcf420840 | 6 | |
jahanzebkhan | 2:430dcf420840 | 7 | Functions::~Functions() |
jahanzebkhan | 2:430dcf420840 | 8 | { |
jahanzebkhan | 2:430dcf420840 | 9 | } |
jahanzebkhan | 2:430dcf420840 | 10 | |
jahanzebkhan | 2:430dcf420840 | 11 | void Functions::output_score(N5110 &lcd, Gamepad &pad, Body &body, Food &food) |
jahanzebkhan | 2:430dcf420840 | 12 | { |
jahanzebkhan | 2:430dcf420840 | 13 | char buffer2[12]; |
jahanzebkhan | 2:430dcf420840 | 14 | sprintf(buffer2,"score = %2d",body.score); |
jahanzebkhan | 2:430dcf420840 | 15 | lcd.printString(buffer2,0,1); |
jahanzebkhan | 2:430dcf420840 | 16 | } |