-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwii_anal_lcd.h
43 lines (32 loc) · 1.58 KB
/
wii_anal_lcd.h
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
#ifndef WII_ANAL_LCD_H_
#define WII_ANAL_LCD_H_
//----------------------------------------------------------------------------- ----------------------------------------
// A couple of monospaced hex fonts
//
#include "gfx/images.h"
extern const image_t* img_6x8[];
extern const image_t* img_5x7[];
//============================================================================= ========================================
// macros to draw only two sides of a box
// these are used for drawing the wires on the WAIT screen
//
#define BOX_TL(x1,y1,x2,y2) do { \
canvas_draw_frame(canvas, x1,y1, x2-x1+1,2); \
canvas_draw_frame(canvas, x1,y1+2, 2,y2-y1+1-2); \
}while(0)
#define BOX_BL(x1,y1,x2,y2) do { \
canvas_draw_frame(canvas, x1,y2-1, x2-x1+1,2); \
canvas_draw_frame(canvas, x1,y1, 2,y2-y1+1-2); \
}while(0)
//============================================================================= ========================================
// Function prototypes
//
void patBacklight (state_t* state) ;
void showHex ( Canvas* const canvas, uint8_t x, uint8_t y,
const uint32_t val, const uint8_t cnt, const int b ) ;
void showPeakHold (state_t* const state, Canvas* const canvas, const int hold) ;
void showJoy ( Canvas* const canvas, const uint8_t x, const uint8_t y, // x,y is the CENTRE of the Joystick
const uint8_t xMin, const uint8_t xMid, const uint8_t xMax,
const uint8_t yMin, const uint8_t yMid, const uint8_t yMax,
const uint8_t xPos, const uint8_t yPos, const uint8_t bits ) ;
#endif //WII_ANAL_LCD_H_