-
Notifications
You must be signed in to change notification settings - Fork 117
/
util.c
62 lines (54 loc) · 1.21 KB
/
util.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#include <r0ketlib/config.h>
#include <r0ketlib/fonts.h>
#include <r0ketlib/fonts/smallfonts.h>
#include <r0ketlib/display.h>
#include <r0ketlib/print.h>
#include <r0ketlib/render.h>
#include <r0ketlib/keyin.h>
#include <r0ketlib/select.h>
#include <r0ketlib/stringin.h>
#include <r0ketlib/image.h>
#include <rad1olib/pins.h>
#include <rad1olib/systick.h>
#include <lpcapi/msc/msc_main.h>
/**************************************************************************/
void msc_menu(void){
MSCenable();
lcdPrintln("MSC enabled.");
lcdDisplay();
getInputWaitRelease();
getInputWait();
lcdPrintln("disconnect");
lcdDisplay();
MSCdisable();
fsReInit();
getInputWaitRelease();
}
void tick_alive(void){
static int foo=0;
if(GLOBAL(alivechk)==0)
return;
if(foo++>500/SYSTICKSPEED){
foo=0;
TOGGLE(LED2);
};
return;
}
//# MENU image display_image
void t_img(void){
char fname[FLEN];
selectFile(fname, "LCD");
lcdShowImageFile(fname);
getInputWait();
}
//# MENU image play_animation
void t_ani(void){
char fname[FLEN];
selectFile(fname, "AN1");
lcdShowAnim(fname);
}
void infoscreen();
//# MENU INFO
void night(void){
infoscreen();
}