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: functions/functions.cpp
- Revision:
- 2:430dcf420840
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/functions/functions.cpp Fri Jun 05 22:51:49 2020 +0000 @@ -0,0 +1,16 @@ +#include "functions.h" + +Functions::Functions() +{ +} + +Functions::~Functions() +{ +} + +void Functions::output_score(N5110 &lcd, Gamepad &pad, Body &body, Food &food) +{ + char buffer2[12]; + sprintf(buffer2,"score = %2d",body.score); + lcd.printString(buffer2,0,1); +} \ No newline at end of file