SDG+USBHost(Mouse) Sample
Dependencies: Sound_Generator USBHost_custom
Fork of SDG_Mouse_Sample by
Information
Japanese version is available in lower part of this page.
このページの後半に日本語版が用意されています.
What is this?
This program is a demonstration that sounds the sound by mouse operation by using USBHost(Mouse) and Sound Generator.
Settings
Close JP3 of GR-PEACH.
Operation
operation | effect |
---|---|
Right click | Sounds |
Left click | Reset to base tone (C) |
Moves the mouse to the right | Lower the sound |
Moves the mouse to the left | Higher the sound |
Center cursor | Adjust the sensitivity. Reset the reference value in the click. |
Others
The default setting of serial communication (baud rate etc.) in mbed is shown the following link.
Please refer to the link and change the settings of your PC terminal software.
The default value of baud rate in mbed is 9600, and this application uses baud rate 9600.
https://developer.mbed.org/teams/Renesas/wiki/GR-PEACH-Getting-Started#install-the-usb-serial-communication
概要
このプログラムは、USBHost(Mouse) + Sound Generatorで、マウス操作による擬似笛デモです。
設定
GR-PEACHのJP3をショートする必要があります。
操作方法
操作 | 内容 |
---|---|
右クリック | 音出力開始 |
左クリック | 基準音(ド)にリセット |
マウス右移動 | 高音になります |
マウス左移動 | 低音になります |
センターカーソル | 音高低の変化量調整(クリックで基準値にリセット) |
Others
mbedのシリアル通信(ボーレート等)のデフォルト設定は以下のリンクに示しています。
リンクを参考に、お使いのPCターミナルソフトの設定を変更して下さい。
mbedでのボーレートのデフォルト値は9600で、このサンプルではボーレート9600を使います。
https://developer.mbed.org/teams/Renesas/wiki/GR-PEACH-Getting-Started#install-the-usb-serial-communication
Revision 1:0a457e34fa9e, committed 2013-03-06
- Comitter:
- samux
- Date:
- Wed Mar 06 17:10:32 2013 +0000
- Parent:
- 0:a554658735bf
- Child:
- 2:5e8fdc541b98
- Commit message:
- add doxygen comments
Changed in this revision
--- a/USBHostHID/USBHostKeyboard.h Wed Mar 06 16:27:14 2013 +0000 +++ b/USBHostHID/USBHostKeyboard.h Wed Mar 06 17:10:32 2013 +0000 @@ -25,6 +25,9 @@ #include "USBHost.h" +/** + * A class to communicate a USB keyboard + */ class USBHostKeyboard : public IUSBEnumerator { public:
--- a/USBHostHID/USBHostMouse.h Wed Mar 06 16:27:14 2013 +0000 +++ b/USBHostHID/USBHostMouse.h Wed Mar 06 17:10:32 2013 +0000 @@ -25,6 +25,9 @@ #include "USBHost.h" +/** + * A class to communicate a USB mouse + */ class USBHostMouse : public IUSBEnumerator { public:
--- a/USBHostMSD/USBHostMSD.h Wed Mar 06 16:27:14 2013 +0000 +++ b/USBHostMSD/USBHostMSD.h Wed Mar 06 17:10:32 2013 +0000 @@ -27,9 +27,8 @@ #include "FATFileSystem.h" /** - * A class to use a USB stick + * A class to communicate a USB flash disk */ - class USBHostMSD : public IUSBEnumerator, public FATFileSystem { public: /**
--- a/USBHostSerial/USBHostSerial.h Wed Mar 06 16:27:14 2013 +0000 +++ b/USBHostSerial/USBHostSerial.h Wed Mar 06 17:10:32 2013 +0000 @@ -27,6 +27,9 @@ #include "Stream.h" #include "MtxCircBuffer.h" +/** + * A class to communicate a USB virtual serial port + */ class USBHostSerial : public IUSBEnumerator, public Stream { public: /**