-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcross_arduino.h
54 lines (44 loc) · 1.65 KB
/
cross_arduino.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
44
45
46
47
48
49
50
51
52
53
54
#ifndef _CROSS_ARDUINO_H_
#define _CROSS_ARDUINO_H_
#include "structs.h"
#include "Arduboy2.h"
#include "ArduboyTonesFX.h"
#include <ArduboyFX.h> // Required library for accessing the FX flash chip
#include "fxdata/fxdata.h" // this file contains all the references to FX data
// Check out fxdata.txt to see how this is done.
#define FXFONT(n) (((int)n)-32)
bool cross_input_up();
bool cross_input_down();
bool cross_input_left();
bool cross_input_right();
bool cross_input_a();
bool cross_input_b();
uint8_t checkDesired(uint8_t desired);
bool cross_input_up_now();
bool cross_input_down_now();
bool cross_input_left_now();
bool cross_input_right_now();
bool cross_input_a_now();
bool cross_input_b_now();
void cross_print(int x, int y, int size, char *string);
void cross_print(int x, int y, int size, __uint24 address);
void cross_drawPixel(int x, int y, bool colour);
void cross_drawVLine(int x, int y, int length, bool colour);
void cross_drawHLine(int x, int y, int length, bool colour);
void cross_set_leds(uint8_t red, uint8_t green, uint8_t blue);
void cross_drawBitmapTile(int x, int y, int width, int height, int colour, int mirror, float zoom, __uint24 fximage);
bool cross_getPixel(int x, int y);
void cross_setup();
bool cross_loop_start();
void cross_loop_end();
unsigned long getFrameMs();
unsigned long getCurrentMs();
#ifdef PERF_RENDER
unsigned long getMs();
#endif
void cross_save(SaveData saveData);
SaveData cross_load();
void cross_playSound(bool makeSound, uint16_t hertz, uint8_t duration);
void cross_play_audio(bool makeSound, uint24_t fxsound);
void cross_stop_audio(bool makeSound);
#endif