Developpement/23DEV1.1/CM2/lightness.c

12 lines
171 B
C
Raw Permalink Normal View History

2024-12-09 11:53:11 +01:00
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include "lightness.h"
int light(void){
if (time(NULL)%2) {
return LIGHT;
} else {
return DARK;
}
}