|
|
@ -30,6 +30,11 @@ Runtime_::Runtime_(void) {
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
void
|
|
|
|
void
|
|
|
|
Runtime_::setup(void) {
|
|
|
|
Runtime_::setup(void) {
|
|
|
|
|
|
|
|
kaleidoscope::sketch_exploration::pluginsExploreSketch();
|
|
|
|
|
|
|
|
kaleidoscope::Hooks::onSetup();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
device().setup();
|
|
|
|
|
|
|
|
|
|
|
|
// We are explicitly initializing the Serial port as early as possible to
|
|
|
|
// We are explicitly initializing the Serial port as early as possible to
|
|
|
|
// (temporarily, hopefully) work around an issue on OSX. If we initialize
|
|
|
|
// (temporarily, hopefully) work around an issue on OSX. If we initialize
|
|
|
|
// Serial too late, no matter what we do, we'll end up reading garbage from
|
|
|
|
// Serial too late, no matter what we do, we'll end up reading garbage from
|
|
|
@ -38,12 +43,7 @@ Runtime_::setup(void) {
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// TODO(anyone): Figure out a way we can get rid of this, and fix the bug
|
|
|
|
// TODO(anyone): Figure out a way we can get rid of this, and fix the bug
|
|
|
|
// properly.
|
|
|
|
// properly.
|
|
|
|
device().serialPort().begin(9600);
|
|
|
|
//device().serialPort().begin(9600);
|
|
|
|
|
|
|
|
|
|
|
|
kaleidoscope::sketch_exploration::pluginsExploreSketch();
|
|
|
|
|
|
|
|
kaleidoscope::Hooks::onSetup();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
device().setup();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Clear the keyboard state array (all keys idle at start)
|
|
|
|
// Clear the keyboard state array (all keys idle at start)
|
|
|
|
live_keys.clear();
|
|
|
|
live_keys.clear();
|
|
|
|