Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: Gamepad2/Gamepad.cpp
- Revision:
- 4:9b7ea5528a5c
- Parent:
- 3:b7df72682b81
- Child:
- 19:08862f49cd9e
--- a/Gamepad2/Gamepad.cpp Wed Apr 01 16:25:32 2020 +0000
+++ b/Gamepad2/Gamepad.cpp Tue Apr 07 18:56:28 2020 +0000
@@ -23,7 +23,8 @@
_pot1(new AnalogIn(PTB2)),
_pot2(new AnalogIn(PTB3)),
-
+
+ //rca(new PwmOut(PTE25)),
dac(new AnalogOut(DAC0_OUT)),
ticker(new Ticker),
timeout(new Timeout),
@@ -370,6 +371,7 @@
start_fall = true;
}
+
void Gamepad::set_bpm(float bpm)
{
_bpm = bpm;
@@ -424,6 +426,7 @@
}
+
void Gamepad::play_next_note()
{
// _note is the note index to play
@@ -470,4 +473,4 @@
{
// stops the ticker to end the note
ticker->detach();
-}
+}
\ No newline at end of file