mirror of https://github.com/MLXXXp/Arduboy2.git
Remove start(), clearDisplay(), getInput()
These functions were previously deprecated and renamed to begin(), clear(), buttonsState()
This commit is contained in:
parent
0e89bcdf2e
commit
53fd241064
|
@ -19,11 +19,6 @@ Arduboy2Base::Arduboy2Base()
|
|||
// lastFrameDurationMs
|
||||
}
|
||||
|
||||
void Arduboy2Base::start() // deprecated
|
||||
{
|
||||
begin();
|
||||
}
|
||||
|
||||
// functions called here should be public so users can create their
|
||||
// own init functions if they need different behavior than `begin`
|
||||
// provides by default
|
||||
|
@ -200,11 +195,6 @@ uint16_t Arduboy2Base::rawADC(uint8_t adc_bits)
|
|||
|
||||
/* Graphics */
|
||||
|
||||
void Arduboy2Base::clearDisplay() // deprecated
|
||||
{
|
||||
clear();
|
||||
}
|
||||
|
||||
void Arduboy2Base::clear()
|
||||
{
|
||||
fillScreen(BLACK);
|
||||
|
|
|
@ -70,7 +70,6 @@ public:
|
|||
* call "audio.begin()".
|
||||
*/
|
||||
void begin();
|
||||
void start() __attribute__((deprecated, warning("use begin() instead")));
|
||||
|
||||
/// Flashlight mode
|
||||
/**
|
||||
|
@ -98,7 +97,6 @@ public:
|
|||
|
||||
/// Clears display.
|
||||
void clear();
|
||||
void clearDisplay() __attribute__((deprecated, warning("use clear() instead")));
|
||||
|
||||
/// Copies the contents of the screen buffer to the screen.
|
||||
/**
|
||||
|
|
|
@ -327,12 +327,6 @@ void ArduboyCore::setRGBled(uint8_t red, uint8_t green, uint8_t blue)
|
|||
|
||||
/* Buttons */
|
||||
|
||||
uint8_t ArduboyCore::getInput()
|
||||
{
|
||||
return buttonsState();
|
||||
}
|
||||
|
||||
|
||||
uint8_t ArduboyCore::buttonsState()
|
||||
{
|
||||
uint8_t buttons;
|
||||
|
|
|
@ -183,7 +183,6 @@ public:
|
|||
* LEFT_BUTTON, A_BUTTON, UP_BUTTON, etc.
|
||||
*/
|
||||
|
||||
uint8_t static getInput() __attribute__((deprecated, warning("use buttonsState() instead")));
|
||||
uint8_t static buttonsState();
|
||||
|
||||
// paints 8 pixels (vertically) from a single byte
|
||||
|
|
Loading…
Reference in New Issue