SDG+USBHost(Mouse) Sample

Dependencies:   Sound_Generator USBHost_custom

Fork of SDG_Mouse_Sample by GR-PEACH_producer_meeting

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.
/media/uploads/RyoheiHagimoto/sdg-mouse.jpg

Operation

operationeffect
Right clickSounds
Left clickReset to base tone (C)
Moves the mouse to the rightLower the sound
Moves the mouse to the leftHigher the sound
Center cursorAdjust 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をショートする必要があります。
/media/uploads/RyoheiHagimoto/sdg-mouse.jpg

操作方法

操作内容
右クリック音出力開始
左クリック基準音(ド)にリセット
マウス右移動高音になります
マウス左移動低音になります
センターカーソル音高低の変化量調整(クリックで基準値にリセット)

Others

mbedのシリアル通信(ボーレート等)のデフォルト設定は以下のリンクに示しています。
リンクを参考に、お使いのPCターミナルソフトの設定を変更して下さい。
mbedでのボーレートのデフォルト値は9600で、このサンプルではボーレート9600を使います。
https://developer.mbed.org/teams/Renesas/wiki/GR-PEACH-Getting-Started#install-the-usb-serial-communication

History

main.cpp was updated so that sound generator driver could be closed when USB mouse is detached. default tip

2017-04-24, by Osamu Nakamura [Mon, 24 Apr 2017 18:47:34 +0900] rev 33

main.cpp was updated so that sound generator driver could be closed when USB mouse is detached.


Introduced mbed OS 5 instead of mbed OS 2 (Classic)

2017-04-24, by Osamu Nakamura [Mon, 24 Apr 2017 18:34:23 +0900] rev 32

Introduced mbed OS 5 instead of mbed OS 2 (Classic)


Supports IAR.

2016-04-18, by dkato [Mon, 18 Apr 2016 11:39:57 +0000] rev 31

Supports IAR.


SDG+USBHost(Mouse) Sample

2015-03-31, by MasaoHamanaka [Tue, 31 Mar 2015 07:58:38 +0000] rev 30

SDG+USBHost(Mouse) Sample


change USBHost lib

2015-03-31, by MasaoHamanaka [Tue, 31 Mar 2015 07:44:06 +0000] rev 29

change USBHost lib


Synchronized with git revision 43d7f387ec8e6fef8c03cb5e3a74f7b1596c8f8c

2015-02-27, by mbed_official [Fri, 27 Feb 2015 10:01:08 +0000] rev 28

Synchronized with git revision 43d7f387ec8e6fef8c03cb5e3a74f7b1596c8f8c

Full URL: https://github.com/mbedmicro/mbed/commit/43d7f387ec8e6fef8c03cb5e3a74f7b1596c8f8c/

RZ/A1H - Modify to support GCC and Fix some bugs of driver.


Synchronized with git revision 0ab8d2e6b3d884137dcb5c62d29a07abe132bac7

2015-01-19, by mbed_official [Mon, 19 Jan 2015 14:30:37 +0000] rev 27

Synchronized with git revision 0ab8d2e6b3d884137dcb5c62d29a07abe132bac7

Full URL: https://github.com/mbedmicro/mbed/commit/0ab8d2e6b3d884137dcb5c62d29a07abe132bac7/

RZ_A1H - Implement some USB functions and fix some bugs about USBHost common codes.


Synchronized with git revision e91e6e69d628a619396c2140bd068b5dbb0986db

2014-08-18, by mbed_official [Mon, 18 Aug 2014 13:45:26 +0100] rev 26

Synchronized with git revision e91e6e69d628a619396c2140bd068b5dbb0986db

Full URL: https://github.com/mbedmicro/mbed/commit/e91e6e69d628a619396c2140bd068b5dbb0986db/

Added count argument to disk read/write


Synchronized with git revision bbf5cbc71510e72033aaacbd76c3f127b70f08b6

2014-07-11, by mbed_official [Fri, 11 Jul 2014 10:00:48 +0100] rev 25

Synchronized with git revision bbf5cbc71510e72033aaacbd76c3f127b70f08b6

Full URL: https://github.com/mbedmicro/mbed/commit/bbf5cbc71510e72033aaacbd76c3f127b70f08b6/

[K20D50M] K20D5M -> K20D50M


Synchronized with git revision bcacbb9fbf3432829227430830cca4315b57c1b9

2014-06-03, by mbed_official [Tue, 03 Jun 2014 11:30:38 +0100] rev 24

Synchronized with git revision bcacbb9fbf3432829227430830cca4315b57c1b9

Full URL: https://github.com/mbedmicro/mbed/commit/bcacbb9fbf3432829227430830cca4315b57c1b9/