Formatting & New updated IR

This commit is contained in:
VerstreuteSeele
2023-01-14 08:44:32 +01:00
parent 7385a28ddd
commit 905bb23fdf
216 changed files with 6455 additions and 5877 deletions

View File

@@ -1,43 +1,57 @@
#ifndef WII_ANAL_LCD_H_
#define WII_ANAL_LCD_H_
#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[];
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)
#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 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 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 ) ;
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_