forked from Blendman974/faceclaw
Add sound demo to Faceclaw; use CFW mode 6 (headerless 4bpp) for images
This commit is contained in:
1 parent
116e8891e7
commit
acda9cdd7e
15 files changed
+262
-22
No files matched your search
@@ -266,6 +266,16 @@ export class FaceclawCommunicatorBridge {
|
||||
return this.enqueueJavaCall(() => Boolean(this.communicator.sendShutdown(exitMode)));
|
||||
}
|
||||
|
||||
async playBuzzerNote(note: number, oct: number, beat: number): Promise<void> {
|
||||
await this.enqueueJavaCall(() => {
|
||||
this.communicator.playBuzzerNote(
|
||||
Math.round(note),
|
||||
Math.round(oct),
|
||||
Math.round(beat),
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
async close(): Promise<void> {
|
||||
await this.enqueueJavaCall(() => this.communicator.close());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user