diff --git a/src/Arduboy.cpp b/src/Arduboy.cpp index 001eb84..60a76f2 100644 --- a/src/Arduboy.cpp +++ b/src/Arduboy.cpp @@ -26,8 +26,12 @@ void Arduboy::start() // deprecated void Arduboy::begin() { - boot(); // required - bootUtils(); + boot(); + + if(pressed(UP_BUTTON)) { + flashlight(); + } + bootLogo(); // Audio @@ -38,7 +42,7 @@ void Arduboy::begin() void Arduboy::beginMinimal() { - boot(); // required + boot(); // Audio tunes.initChannel(PIN_SPEAKER_1); @@ -57,13 +61,6 @@ void Arduboy::flashlight() setRGBled(0,0,0); } -void Arduboy::bootUtils() -{ - if(pressed(UP_BUTTON)) { - flashlight(); - } -} - void Arduboy::bootLogo() { // setRGBled(10,0,0); diff --git a/src/Arduboy.h b/src/Arduboy.h index 0c586a2..40775b3 100644 --- a/src/Arduboy.h +++ b/src/Arduboy.h @@ -44,6 +44,12 @@ public: /// Initializes the hardware void begin(); /// Initializes the hardware (no logo, no other bootime niceities) + /** + * If you want to build your own customized boot sequence compare + * begin() with beginMinimal() and just add back the things you wish + * to have in your own sequence, leaving out the things you do not + * desire. + **/ void beginMinimal(); void start() __attribute__ ((deprecated("use begin() instead"))); @@ -59,9 +65,6 @@ public: */ void flashlight(); - /// Boot utility detection (such as flashlight, etc.) - void inline bootUtils() __attribute__((always_inline)); - /// Clears display. void clear(); void clearDisplay() __attribute__ ((deprecated("use clear() instead")));