1
0
Fork 0
mirror of https://github.com/RobotechLille/cdf2018-principal synced 2024-06-28 22:19:00 +02:00
cdf2018-principal/chef/src/points.c

33 lines
365 B
C
Raw Normal View History

2018-04-30 16:15:47 +02:00
#include <stdio.h>
#include "lcd.h"
2018-05-02 08:26:35 +02:00
#include "debug.h"
2018-04-30 16:15:47 +02:00
int points;
2018-05-02 08:26:35 +02:00
void configurePoints()
{
registerDebugVar("points", d, &points);
}
2018-04-30 16:15:47 +02:00
void resetPoints()
{
points = 0;
}
int getPoints()
{
return points;
}
void showPoints()
{
2018-04-30 22:40:20 +02:00
printfToLCD(LCD_LINE_2, "%d points", getPoints());
2018-04-30 16:15:47 +02:00
}
void addPoints(int pts)
{
points += pts;
showPoints();
}