demo updates
This commit is contained in:
@ -9,7 +9,6 @@
|
||||
*****************************************************************************/
|
||||
|
||||
#include "user/demo/KeyboardDemo.h"
|
||||
#include "lib/Input.h"
|
||||
|
||||
void KeyboardDemo::run() {
|
||||
|
||||
@ -19,8 +18,6 @@ void KeyboardDemo::run() {
|
||||
|
||||
while (true) {
|
||||
kout << listener.waitForKeyEvent();
|
||||
|
||||
// kout << getch();
|
||||
kout.flush();
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,8 +1,9 @@
|
||||
#include "user/demo/PCSPKdemo.h"
|
||||
|
||||
void PCSPKdemo::run() {
|
||||
kout << "Playing..." << endl;
|
||||
(pcspk.*this->melody)(); // This syntax is confusing as hell
|
||||
kout << "Finished" << endl;
|
||||
|
||||
pcspk.off();
|
||||
scheduler.exit();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user