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

Changes

RevisionDateWhoCommit message
33:5fa9ed01abae 2017-04-24 Osamu Nakamura main.cpp was updated so that sound generator driver could be closed when USB mouse is detached. default tip
32:1e4a1bb9db73 2017-04-24 Osamu Nakamura Introduced mbed OS 5 instead of mbed OS 2 (Classic)
31:f6d9dbbc1481 2016-04-18 dkato Supports IAR.
30:ff42cc7a0d55 2015-03-31 MasaoHamanaka SDG+USBHost(Mouse) Sample
29:181839dc8cb0 2015-03-31 MasaoHamanaka change USBHost lib
28:8e62b6403505 2015-02-27 mbed_official Synchronized with git revision 43d7f387ec8e6fef8c03cb5e3a74f7b1596c8f8c
27:4206883f4cb7 2015-01-19 mbed_official Synchronized with git revision 0ab8d2e6b3d884137dcb5c62d29a07abe132bac7
26:607951c26872 2014-08-18 mbed_official Synchronized with git revision e91e6e69d628a619396c2140bd068b5dbb0986db
25:45dcbf2ba11d 2014-07-11 mbed_official Synchronized with git revision bbf5cbc71510e72033aaacbd76c3f127b70f08b6
24:868cbfe611a7 2014-06-03 mbed_official Synchronized with git revision bcacbb9fbf3432829227430830cca4315b57c1b9
23:759ec18ee1a7 2014-03-07 mbed_official Synchronized with git revision 50b949b631f36d800e0008780cf33062071b4fa3
22:f4191d3837dc 2014-01-31 mbed_official Synchronized with git revision 82ff30dd43bf2884d073b2b6023cc64eb6ee8714
21:bb3a8a54f5cd 2013-12-17 mbed_official Updated to latest version of mbed-rtos
20:8f510a2502ef 2013-12-16 mbed_official Synchronized with git revision 5dea203d16a93915c80553c1d95b26625bc077f8
19:bd46ea19486b 2013-12-16 mbed_official Synchronized with git revision 170ac6562b7b2b5bb43f8ecf82b2af18b37eeb9c
18:37c948cf0dbf 2013-10-17 mbed_official Synchronized with git revision 7585a23e6c29c41da4793a46a746ac3ec743b780
17:c7b1b8451598 2013-10-16 mbed_official Synchronized with git revision d8c3822c4c4e995cd7eaff0ce99f2d3284dde9cd
16:ab8c9118524e 2013-10-09 mbed_official Synchronized with git revision 330e59fb850b83aefe641d40f9cf02873ab00d08
15:6da3f071ee35 2013-10-07 mbed_official Synchronized with git revision 53edc82f7373bbfa01a161700524765f52fdb444
14:80c2d927b9b5 2013-10-03 mazgch make buffer big enough
13:b58a2204422f 2013-09-16 mbed_official Synchronized with git revision 061259c07c5cd9172d2dbfabf1f0edc51604f316
12:4d2f8064b747 2013-08-13 bogdanm Updated to latest version of mbed-rtos
11:0e0baf9a3236 2013-08-08 emilmont Synch with latest https://github.com/mbedmicro/mbed changes
10:0c11cf1cc218 2013-03-18 samux fixed skip bit - fixed max size conf descriptor
9:7671b6a8c363 2013-03-14 samux use queue to wait end of transfer - use mailbox
8:93da8ea2708b 2013-03-14 samux update doc + license
7:e7e63ac7ae5f 2013-03-13 samux update serial doc
6:1571e517a91b 2013-03-13 samux remove useless mutex calls
5:e48791a1ef18 2013-03-13 samux add button, x, y, z event callbacks
4:b320d68e98e7 2013-03-12 samux bug fixes - support composite device
3:0f5c32575eb8 2013-03-06 samux update doxygen
2:5e8fdc541b98 2013-03-06 samux update doxygen
1:0a457e34fa9e 2013-03-06 samux add doxygen comments
0:a554658735bf 2013-03-06 mbed_official first commit