Modifications

Sauter à la navigation Sauter à la recherche
3 250 octets ajoutés ,  21 mai 2017 à 18:29
Ligne 24 : Ligne 24 :  
== Exécuter le croquis ==
 
== Exécuter le croquis ==
 
{{traduction}}
 
{{traduction}}
 +
Once you upload the sketch to your board (via the arrow-shaped upload icon), and the upload process has finished, open up the Serial Monitor via '''Tools > Serial Monitor''', and make sure that the baud rate in the lower right-hand corner is set to '''115200''':
 +
 +
{{ADFImage|Bluefruit-LE-Shield-HIDKeyboard-10.png}}
 +
 +
To send keyboard data, type anything into the textbox at the top of the Serial Monitor and click the Send button.
 +
 +
== Lier le clavier HID ==
 +
Before you can use the HID keyboard, you will need to 'bond' it to your phone or PC.  The bonding process establishes a permanent connection between the two devices, meaning that as soon as your phone or PC sees the Bluefruit LE module again it will automatically connect.
 +
 +
The exact procedures for bonding the keyboard will varying from one platform to another.
 +
 +
{{ambox-stop|text= When you no longer need a bond, or wish to bond the Bluefruit LE module to another device, be sure to delete the bonding information on the phone or PC, otherwise you may not be able to connect on a new device! }}
 +
 +
== Android ==
 +
To bond the keyboard on a Bluetooth Low Energy enabled Android device, go to the '''Settings''' application and click the '''Bluetooth''' icon.
 +
 +
{{ambox|text= These screenshots are based on Android 5.0 running on a Nexus 7 2013. The exact appearance may vary depending on your device and OS version.
 +
 +
{{ADFImage|Bluefruit-LE-Shield-HIDKeyboard-20.jpg}}
 +
 +
Inside the Bluetooth setting panel you should see the Bluefruit LE module advertising itself as '''Bluefruit Keyboard''' under the 'Available devices' list:
 +
 +
{{ADFImage|Bluefruit-LE-Shield-HIDKeyboard-21.jpg}}
 +
 +
Tapping the device will start the bonding process, which should end with the Bluefruit Keyboard device being moved to a new 'Paired devices' list with 'Connected' written underneath the device name:
 +
 +
{{ADFImage|Bluefruit-LE-Shield-HIDKeyboard-22.jpg}}
 +
 +
To delete the bonding information, click the gear icon to the right of the device name and the click the Forget button:
 +
 +
{{ADFImage|Bluefruit-LE-Shield-HIDKeyboard-23.jpg}}
 +
 +
== iOS ==
 +
To bond the keyboard on an iOS device, go to the '''Settings''' application on your phone, and click the '''Bluetooth''' menu item.
 +
 +
The keyboard should appear under the '''OTHER DEVICES''' list:
 +
 +
{{ADFImage|Bluefruit-LE-Shield-HIDKeyboard-30.jpg}}
 +
 +
Once the bonding process is complete the device will be moved to the '''MY DEVICES''' category, and you can start to use the Bluefruit LE module as a keyboard:
 +
 +
{{ADFImage|Bluefruit-LE-Shield-HIDKeyboard-31.jpg}}
 +
 +
To unbond the device, click the 'info' icon and then select the '''Forget this Device''' option in the menu:
 +
 +
{{ADFImage|Bluefruit-LE-Shield-HIDKeyboard-32.jpg}}
 +
 +
== OS X ==
 +
To bond the keyboard on an OS X device, go to the '''Bluetooth Preferences''' window and click the '''Pair''' button beside the '''Bluefruit Keyboard''' device generated by this example sketch:
 +
 +
{{ADFImage|Bluefruit-LE-Shield-HIDKeyboard-40.png}}
 +
 +
To unbond the device once it has been paired, click the small 'x' icon beside '''Bluefruit Keyboard''':
 +
 +
{{ADFImage|Bluefruit-LE-Shield-HIDKeyboard-41.png}}
 +
 +
... and then click the Remove button when the confirmation dialogue box pops up:
 +
 +
{{ADFImage|Bluefruit-LE-Shield-HIDKeyboard-42.png}}
    
{{Bluefruit-LE-Shield-TRAILER}}
 
{{Bluefruit-LE-Shield-TRAILER}}
29 917

modifications

Menu de navigation