added begin()

drawBitmap()
      display()
      exports for testing purposes
This commit is contained in:
ZennDev1337 2023-10-02 11:18:17 +02:00
parent 1c582941d8
commit 79a913f442
4 changed files with 37 additions and 0 deletions

View file

@ -22,3 +22,4 @@ lib_deps =
mlxxxp/Arduboy2@^6.0.0
ArduboyTones@^1.0.3
https://github.com/igvina/ArdVoice
https://github.com/MrBlinky/ArduboyFX

View file

@ -0,0 +1,29 @@
#pragma once
extern "C"
{
void arduboyfx_begin(void)
{
FX::begin();
}
void arduboyfx_begin_data(uint16_t datapage)
{
FX::begin(datapage);
}
void arduboyfx_begin_data_save(uint16_t datapage,uint16_t savepage )
{
FX::begin(datapage,savepage);
}
void arduboyfx_display()
{
FX::display();
}
void arduboyfx_display_clear()
{
FX::display(true);
}
void arduboyfx_draw_bitmap(int16_t x,int16_t y,uint24_t address,uint8_t frame,uint8_t mode )
{
FX::drawBitmap(x,y,address,frame,mode);
}
}

View file

@ -13,6 +13,12 @@ Arduboy2 arduboy;
#include <ArduboyTones.h>
#include "./library/arduboy/arduboy_tones_export.h"
#endif
#if defined(ArduboyFX_Library)
#include <ArduboyFX.h>
#include "./library/arduboy/arduboyfx_export.h"
#endif
#if defined(ArdVoice_Library)
#include <ArdVoice.h>
ArdVoice ardvoice;

View file

@ -17,6 +17,7 @@
#define Arduboy2_Library ;
// #define ArduboyTones_Library ;
#define ArduboyFX_Library ;
// #define ArdVoice_Library ;
#define EEPROM_Library ;
#define Arduino_Library ;