1
0
Fork 0
mirror of https://github.com/RobotechLille/cdf2018-principal synced 2024-06-18 09:53:14 +02:00
cdf2018-principal/chef/src/points.c
2018-04-30 22:40:20 +02:00

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();
}