forked from ksksue/PhysicaloidLibrary
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
36 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,41 @@ | ||
- tutorial1 : how to use open/close/read/write | ||
-- add <uses-feature android:name="android.hardware.usb.host" /> to AndroidManifest.xml | ||
-- create a new instance | ||
-- open a device | ||
-- close the device | ||
-- read from the device to a buffer and get read size | ||
-- write a buffer to the device | ||
Physicaloid Library Sample Projects | ||
================== | ||
### PhysicaloidTest | ||
- test project for me | ||
|
||
- tutorial2 : how to use upload | ||
-- set board type and assets file. | ||
-- copy .hex file to porject_dir/assets directory. | ||
### tutorial1 : how to use open/close/read/write | ||
 | ||
- add <uses-feature android:name="android.hardware.usb.host" /> to AndroidManifest.xml | ||
- create a new instance | ||
- open a device | ||
- close the device | ||
- read from the device to a buffer and get read size | ||
- write a buffer to the device | ||
|
||
- tutorial3 : how to use read/upload callbacks | ||
-- add read callback | ||
-- clear read callback | ||
-- create upload callback | ||
-- set upload callback | ||
### tutorial2 : how to use upload | ||
 | ||
- set board type and assets file. | ||
- copy .hex file to porject_dir/assets directory. | ||
|
||
- tutorial4 : how to change UART configures | ||
-- set only baudrate | ||
-- set uart configurations | ||
|
||
- tutorial5 : how to discover when user attach USB and open automatically | ||
-- register intent filtered actions for device being attached or detached | ||
-- unregister the intent filtered actions | ||
-- get intent when a USB device attached | ||
-- get intent when a USB device detached | ||
-- add usb device attached intent | ||
-- add device filter for usb device being attached | ||
-- add launchMode singleTask not to run multiple apps | ||
-- create rex/xml/device_filter.xml | ||
### tutorial3 : how to use read/upload callbacks | ||
 | ||
- add read callback | ||
- clear read callback | ||
- create upload callback | ||
- set upload callback | ||
|
||
### tutorial4 : how to change UART configures | ||
 | ||
- set only baudrate | ||
- set uart configurations | ||
|
||
### tutorial5 : how to discover when user attach USB and open automatically | ||
 | ||
- register intent filtered actions for device being attached or detached | ||
- unregister the intent filtered actions | ||
- get intent when a USB device attached | ||
- get intent when a USB device detached | ||
- add usb device attached intent | ||
- add device filter for usb device being attached | ||
- add launchMode singleTask not to run multiple apps | ||
- create rex/xml/device_filter.xml |