1
0
Fork 0
mirror of https://github.com/RobotechLille/cdf2018-principal synced 2024-05-20 21:56:23 +02:00
cdf2018-principal/chef/src/points.c
2018-05-02 08:26:35 +02:00

33 lines
365 B
C

#include <stdio.h>
#include "lcd.h"
#include "debug.h"
int points;
void configurePoints()
{
registerDebugVar("points", d, &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();
}