mirror of
https://github.com/RobotechLille/cdf2018-principal
synced 2024-11-14 20:36:03 +01:00
27 lines
274 B
C
27 lines
274 B
C
#include <stdio.h>
|
|
|
|
#include "lcd.h"
|
|
|
|
int points;
|
|
|
|
void resetPoints()
|
|
{
|
|
points = 0;
|
|
}
|
|
|
|
int getPoints()
|
|
{
|
|
return points;
|
|
}
|
|
|
|
void showPoints()
|
|
{
|
|
printfToLCD(LCD_LINE_2, "%d points", getPoints());
|
|
}
|
|
|
|
void addPoints(int pts)
|
|
{
|
|
points += pts;
|
|
showPoints();
|
|
}
|