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