2024-02-25 03:00:23 +00:00
|
|
|
#ifndef CROCPARTY_DEVICE_H
|
|
|
|
#define CROCPARTY_DEVICE_H
|
|
|
|
|
|
|
|
#include <stdint.h>
|
2024-02-26 00:25:34 +00:00
|
|
|
#include <stdbool.h>
|
2024-02-25 03:00:23 +00:00
|
|
|
|
|
|
|
// 240 x 135 is also cool
|
|
|
|
#define DEVICE_W 128
|
|
|
|
#define DEVICE_H 128
|
|
|
|
|
2024-02-26 00:25:34 +00:00
|
|
|
typedef enum {
|
|
|
|
DEVICE_BUTTON_L=0,
|
|
|
|
DEVICE_BUTTON_R=1,
|
|
|
|
DEVICE_BUTTON_U=2,
|
|
|
|
DEVICE_BUTTON_D=3,
|
|
|
|
|
|
|
|
DEVICE_BUTTON_0=4,
|
|
|
|
DEVICE_BUTTON_1=5,
|
|
|
|
DEVICE_BUTTON_2=6,
|
|
|
|
DEVICE_BUTTON_3=7,
|
|
|
|
|
|
|
|
DEVICE_BUTTON_N=8,
|
|
|
|
} DeviceButton;
|
|
|
|
|
2024-02-26 01:54:57 +00:00
|
|
|
extern uint8_t device_pixels[DEVICE_H][DEVICE_W];
|
|
|
|
extern uint32_t device_palette[256];
|
|
|
|
|
2024-02-26 00:25:34 +00:00
|
|
|
extern bool device_buttons[DEVICE_BUTTON_N];
|
2024-02-25 03:00:23 +00:00
|
|
|
|
|
|
|
#endif //CROCPARTY_DEVICE_H
|