Commit graph

265 commits

Author SHA1 Message Date
unknown
d0d11c6a39 Really Fix skip test files name 2022-08-28 13:50:28 +02:00
unknown
6e4b54191b Fix skip test files name 2022-08-28 13:44:56 +02:00
Maximilian Gerhardt
520e677d29
Skip incompatible test for ESP32S3 2022-08-28 13:36:06 +02:00
Maximilian Gerhardt
6f0dec192f
Skip incompatible test for ESP32S3 2022-08-28 13:35:40 +02:00
Maximilian Gerhardt
64f9976d78
Skip incompatible test for ESP32S3 2022-08-28 13:35:12 +02:00
hathach
357e656681
multiple cdc example: check for CFG_TUD_CDC to be at least 2
add note that esp32-sx is not supported yet (more works needed).
2022-08-05 19:10:03 +07:00
Arif Darmawan
b7bf5be9da add example for USB host HID report 2022-07-21 14:03:36 +07:00
hathach
cea04406dd
add feather52833 skip file to external flash example 2022-07-14 12:59:29 +07:00
hathach
3801b5cfdd improve webusb example 2022-07-01 00:42:38 +07:00
hathach
7264c1492a more description 2022-06-20 23:00:08 +07:00
hathach
7ef1fd2ef9 add example description 2022-06-20 22:49:43 +07:00
hathach
93072a4d79 clean up warnings 2022-06-15 16:06:31 +07:00
hathach
eaf09e13e3 rp2040 host work as proof of concept 2022-06-15 16:06:31 +07:00
hathach
0207a6ebe0 adding host support for rp2040 2022-06-15 16:06:31 +07:00
hathach
244c3a4a35
update texts for cdc_multi example 2022-06-15 15:44:04 +07:00
hathach
24ddb004df
update cdc_multi example description 2022-06-09 18:00:25 +07:00
Nico Martin
31fbb9e268 added example support for Arduino Nano RP2040 Connect 2022-05-05 21:10:39 +07:00
hathach
0752bd41d2
refresh msc by temporarily not ready to force host to refresh its cache 2022-02-16 16:50:54 +07:00
hathach
f8c84dfe45
fix create using browser 2022-02-16 16:18:55 +07:00
hathach
531974a79d add how to run example description, fix upload/edit mode
rename resource to data folder to match original example
2022-02-16 16:12:12 +07:00
hathach
ede0eff3a9 fix ci build 2022-02-16 14:56:20 +07:00
hathach
9c04c2f9d4 enable ci build for esp32s2 board 2022-02-16 13:28:35 +07:00
hathach
bd138934d2 add resources files 2022-02-16 13:12:18 +07:00
hathach
b49727d1c4 file browser work, but only with root dir 2022-02-16 13:12:18 +07:00
hathach
b454e0c8c6 adding inital example 2022-02-16 13:12:18 +07:00
hathach
d23e304fc0 fix msc external flash example issue if flash is not formatted
examples/MassStorage/msc_external_flash_sdcard/msc_external_flash_sdcard.ino
2022-02-16 13:11:56 +07:00
Ha Thach
68f3982c4a
Merge branch 'master' into msc-unit-ready 2022-02-16 12:07:00 +07:00
hathach
88f0998891 print sd error, fix card capacity print 2022-02-15 22:04:38 +07:00
hathach
2c210ee080 update msc external flash example to work with rp2040 2022-02-10 15:51:38 +07:00
hathach
9e4b77de5d update example to detect sd card on the fly 2022-01-28 17:15:08 +07:00
hathach
44b0910e87 add minor comment 2022-01-17 20:12:56 +07:00
hathach
8700e63026 set sense code to NOT READY (medium not found) when unit is not ready
add button eject to demonstrate setReadyCallback() in msc_ramdisk
example
2022-01-17 16:51:49 +07:00
hathach
bda5a3a55e
run ci with msc_internal_flash_samd for metro m0
add Adafruit InternalFlash into depends list for example building
2022-01-13 19:12:28 +07:00
hathach
d294b93e81
add msc internal flash samd example 2022-01-12 21:00:52 +07:00
hathach
d977715363
add back esp32s2 test skip for msc_sd 2022-01-12 17:53:03 +07:00
hathach
bbc3a305d5 add support for setWritableCallback() 2022-01-12 17:41:28 +07:00
hathach
10119b7ba5 add note for SdFat_format for msc_external_flash example
try to enable ci for esp32s2
2022-01-12 17:41:28 +07:00
hathach
8716d79e3b update hid test py to support list of VIDs 2021-12-08 14:12:49 +07:00
hathach
53e5625471
add funhouse and magtag to ci build 2021-09-30 12:59:29 +07:00
hathach
6eb5a2858b
update hid generic inout exmaple to work with esp32s2, update changelog 2021-09-29 21:14:27 +07:00
hathach
012db8619e
all msc examples work with esp32s2, skip a couple of incompatible examples 2021-09-29 00:46:14 +07:00
hathach
0c5a29b80b
all hid examples work with esp32s2 2021-09-29 00:31:43 +07:00
hathach
5e40ffd959
update hid examples to work esp32s2 2021-09-29 00:23:47 +07:00
hathach
4a3013db4c
skip cdc_multi and no_serial for esp32s2 2021-09-28 23:56:45 +07:00
hathach
41d45dd74d
update hid composite to work with funhouse 2021-09-28 23:51:35 +07:00
hathach
335e90e891
update hid_boot_keyboard to support neopixel with power pin, button active high boards such as cpx, cpb and funhouse
also use built-in buttons if defined
2021-09-28 21:52:10 +07:00
hathach
1b2223730c
update webusb example to support NEOPIXEL_POWER pin 2021-09-28 21:50:10 +07:00
hathach
a6da6f2435
minor clean up 2021-09-28 14:44:47 +07:00
hathach
0385061007 hid works with esp32 by moving arguments into constructor 2021-09-28 00:09:12 +07:00
hathach
611608f9dc esp32s2 running well with lib API
- Device and Serial (CDC) uses arduino-esp32 core code
- MSC work well using descriptor builder from core
2021-09-27 18:39:50 +07:00
hathach
616a65abd0 change hid_mouse to hid_boot_mouse 2021-08-17 16:42:21 +07:00
hathach
0dfa65f16f change hid_keyboard to hid_boot_keyboard 2021-08-17 16:37:43 +07:00
hathach
cab3c418b8 whitespace 2021-08-10 15:38:28 +07:00
hathach
3620afb778 also update node script to always shift dummy reportID like python
update to allow specify all product id with 0xFFFF in boards.js
2021-08-10 15:35:11 +07:00
hathach
1500c19f52 fix hid_test.py preceeded with 0x00 as dummy reportID
update comment for how to install hidapi on windows
2021-08-09 22:52:43 +07:00
hathach
4b84b22c1e remove composite hid + ramdisk, since it is not really needed 2021-08-09 22:50:17 +07:00
hathach
d30813086b revert a example 2021-07-20 01:14:27 +07:00
hathach
1d750a02ef update example, add note for without built-in support cores 2021-07-19 16:11:03 +07:00
hathach
560b9ebde6 enable to build examples with mbed rp2040 2021-07-16 23:31:44 +07:00
hathach
e3ad1256b5 msc_ramdisk run ok with mbed rp2040 as proof of concept 2021-07-16 23:02:34 +07:00
hathach
4224cac621 rename USBDevice to TinyUSBDevice to avoid name conflict
USBDevice is alias for compatible when USE_TINYUSB is defined
2021-07-16 14:24:48 +07:00
hathach
3bfa33644e comment out blocking wait for serial connection 2021-07-09 20:02:34 +07:00
hathach
2611644c6a fix example for esp32s2 build 2021-06-29 23:28:40 +07:00
hathach
24cae73339
reduce number of cdc instance in example from 3 to 2 2021-06-25 12:23:34 +07:00
hathach
581fff6599
add support for esp32s2 2021-06-25 00:16:09 +07:00
hathach
48e507f378
minor clean up 2021-06-21 00:40:53 +07:00
hathach
3870224476
update gamepad sketch 2021-06-21 00:39:24 +07:00
hathach
02c478e281 add rp2040 to ci
skip msc with sdfat example for rp2040 due to SdFat compile error
2021-06-20 17:13:49 +07:00
hathach
2ae50f208d add begun guard, rename example to match others 2021-06-16 12:02:35 +07:00
hathach
0ef6be1596 cdc instance assigned when begin
revert itf to instance rename
2021-06-16 11:21:36 +07:00
WestfW
69576fb42b Simplify the example, use MIT license for compatibility/clarity. 2021-06-15 00:23:08 -07:00
WestfW
fc84b31094 Fix capitalization of include file, which matters on systems with more case-sensitive file systems :-( 2021-06-14 01:04:26 -07:00
WestfW
c4b11b1ed7 Allow multiple CDCs.
You must:

1) increase CFG_TUD_CDC in tusb_config.c (currently, in the core.)

2) define the additional Vserial ports "Adafruit_USBD_CDC portName(n)" (where n goes from 1 to CFG_TUD_CDC-1) (0 is "Serial")  "n" is a new addition to the constructor.

3) Use the "begin method" on the additional ports in "n" order.

There is a new example ../CDC/multiCDC that exercises the features.
2021-06-13 00:42:25 -07:00
nekuneko
46bb891a37 Layout updated 2021-05-25 22:21:10 +07:00
nekuneko
3b63db4415 Added Rx/Ry support 2021-05-25 22:21:10 +07:00
nekuneko
0c6fd22ac4 Added HID Gamepad example 2021-05-25 22:21:10 +07:00
hathach
4558cccaad
fix warning 2021-05-25 12:37:16 +07:00
Earle F. Philhower, III
455426e02a Fix "-Wall -Wextra -Werror" warnings in examples 2021-05-22 17:15:00 -07:00
hathach
779dc3f13f update rp2040 port 2021-05-18 00:54:47 +07:00
hathach
8640830650 support dropping Serial, add no_serial example 2021-05-07 14:47:43 +07:00
hathach
7759332687 improve port API with TinyUSB_Port_GetSerialNumber 2021-05-07 00:12:32 +07:00
hathach
36168e1f2c update url for webusb examples 2020-12-28 12:10:46 +07:00
hathach
ae9efff617 temp comment out setStringDescriptor() in example
since it need BSP released first
2020-09-16 23:15:48 +07:00
hathach
b08a79fa01 use setStringDescriptor() in example
change the HID INOUT endpoint order : 1st endpoint is IN, 2nd is OUT to
compatible with cmsis-dap
2020-09-16 22:26:26 +07:00
hathach
9d3bee3c89 clean up 2020-09-15 12:11:51 +07:00
hathach
bb4d00a6f1 update example with FRAM/custom external flash pin 2020-08-18 19:06:22 +07:00
hathach
8a7788651d Added consumer control support to HID/hid_composite example
Added Adafruit_USBD_HID send report helper: sendReport8(),
sendReport16(), sendReport32()
2020-04-23 15:42:43 +07:00
hathach
92a8d282d6 update new hid descriptor (drop comma after report id)
this will need requires tinyusb core update from bsp to work with.
2020-04-21 00:40:14 +07:00
hathach
0a8b08220b Merge branch 'master' into develop 2020-04-14 14:10:20 +07:00
Timon
73541cf6a3
Delete package-lock.json
Probably not necessary to have for this case
2020-03-30 14:06:50 +02:00
hathach
f211302184
clean up 2020-02-18 13:17:41 +07:00
Ha Thach
d6a8869647
Actionci samd (#42)
* testing ci for samd

* skip msc_sd test

* test metro_m4

* change platforms

* midi_pizza_box_dj only test with cpb and cpx

* change test only to cpx_ada

* test metro_m0/m4 cpb nrf52840

* change back to adafruit/ci-arduino

wait for to https://github.com/adafruit/ci-arduino/pull/65 re-run checks

* re-test msc_sd
2020-01-06 13:30:17 +07:00
Lady Ada
7170968c8d remaining examples 2019-12-30 00:11:58 -05:00
Lady Ada
990f1417b7 one more clang 2019-12-30 00:07:28 -05:00
hathach
c3c411111e change all neopixel color 2019-08-05 10:46:51 +07:00
hathach
eef3bf713d clean up 2019-08-02 18:17:12 +07:00
hathach
9dda972bd3 add webusb rgb example 2019-08-02 18:02:53 +07:00
hathach
b41f87460a add webusb rgb with neopixel example 2019-08-01 21:33:07 +07:00
hathach
b1cebd22b5 add WEBUSB_URL_DEF() to avoid using flexible array member in C++ 2019-08-01 13:16:29 +07:00
hathach
ba7b4d4369 add message when connected 2019-07-31 21:35:28 +07:00
hathach
28a92ea7fb webusb_serial work well 2019-07-31 21:29:57 +07:00
hathach
84024875dd add stream API() for webusb, add setLineStateCallback()
example work with line state callback
2019-07-31 20:34:45 +07:00
hathach
0f48a69cb2 adding webusb support
webusb_serial example enumerated, landing page is loaded correctly.
2019-07-31 13:36:14 +07:00
Timon Skerutsch
4b2d1fa9fa Changed directory instruction 2019-07-29 18:11:55 +02:00
Timon Skerutsch
0049032bd9 Reverted to dual ramdisk version 2019-07-24 15:53:35 +02:00
Timon Skerutsch
3f13559630 Reverted moving ramdisk to src 2019-07-23 16:09:42 +02:00
Timon Skerutsch
99be8f4a84 Alligned mouse examples, added newer hid in/out example from main repo, added new composite example for ramdisk and hid in/out. Moved ramdisk.h to src. 2019-07-22 18:30:12 +02:00
hathach
129444faa5 clean up 2019-07-17 13:59:35 +07:00
hathach
d711cfee1f skip pizza box dj in travis since it only build with cplayground express board 2019-07-08 18:14:00 +07:00
hathach
ea4256fd0d skip waiting for serial connection in examples
instead wait until device enumerated/mounted
2019-07-05 17:28:21 +07:00
hathach
143e2f5bc3 finished the hid composite joy featherwing example 2019-07-05 11:08:07 +07:00
hathach
0174639545 clean up hid_composite example 2019-07-05 10:27:40 +07:00
hathach
16b018bfd2 add hid_composite with joy feather wing 2019-07-05 01:19:47 +07:00
hathach
9dfe22099b Merge branch 'master' into develop 2019-07-05 00:39:26 +07:00
hathach
6bfc929981 update hid mouse to work cplayground express
button active state = 1
2019-07-05 00:35:27 +07:00
hathach
5e91c11faf example rename and clean up 2019-07-04 19:14:04 +07:00
hathach
e26d1c10ac add midi pizza box dj example 2019-07-04 18:52:48 +07:00
hathach
2ac0b6943c mention MIDI Library in example sketch 2019-07-04 02:07:00 +07:00
hathach
9017f9f560 added usb midi and its example 2019-07-04 01:00:16 +07:00
hathach
ee5bc43635 update example text 2019-07-03 19:04:31 +07:00
hathach
281218e182 update dual lun external flash + sd example 2019-06-19 21:31:43 +07:00
hathach
4fafd00193 update msc sdfat example 2019-06-19 18:37:09 +07:00
hathach
9c0ea7d945 update example 2019-06-18 23:04:41 +07:00
hathach
2affe1bb1b print flash contents (root only) for external flash example 2019-06-18 19:13:12 +07:00
hathach
27e1e027e1 clean up 2019-06-18 18:36:58 +07:00
hathach
c23b49a3ec add mouse external flash example 2019-06-18 00:58:19 +07:00
hathach
b7b834bd82 add mouse_ramdisk example 2019-06-18 00:27:21 +07:00
hathach
f21521d69b add hid_mouse keyboard 2019-06-18 00:19:27 +07:00
hathach
05f9763f09 clean up examples 2019-06-17 19:27:35 +07:00
hathach
8aebfbe376 msc update to use flash block API (with caching) 2019-06-16 00:45:51 +07:00
hathach
86fdf160fc
add msc dual lun external flash + sd card example 2019-06-11 17:21:04 +07:00
hathach
341744aa1f
add msc_sdfat example 2019-06-11 15:21:18 +07:00
hathach
427e98d999 add node hid installation instruction 2019-05-29 21:11:29 +07:00
PTS93
8420c4c149 added node.js example which works on every OS 2019-05-26 23:41:01 +02:00
hathach
c3ad0f6705 clean up 2019-05-24 01:19:11 +07:00
hathach
f95f33079c update msc external flash example 2019-05-22 09:48:11 +07:00
hathach
0a8211953e
use PIN_LED as caplock indicator 2019-05-14 08:49:43 +07:00
hathach
a6c1fcf330
fix hid keyboard 2019-05-14 08:39:53 +07:00
hathach
a74341b3ac
add hid keyboard report 2019-05-14 01:12:23 +07:00
hathach
f2d8f814e6 Merge branch 'master' of github.com:adafruit/Adafruit_TinyUSB_Arduino 2019-05-13 23:32:19 +07:00
hathach
93186d8146
example clean up 2019-05-13 23:31:22 +07:00
Brian Cully
e317c8a445 Fix spelling error.
Adafruit_USB_HID::keyboadReport -> keyboardReport.
2019-05-13 11:49:39 -04:00
hathach
7b4814f625
update msc_external_flash to work with spi and qspi flash on m0 and m4 2019-05-13 16:22:51 +07:00
hathach
42433d5815
add flash caching for msc spiflash example 2019-05-13 13:07:24 +07:00
hathach
d59f9915d2
move examples 2019-05-13 01:09:22 +07:00
hathach
114f594cd8
file text clean up 2019-05-13 01:01:13 +07:00
hathach
76f38fe1f4
clean up example license 2019-05-13 00:58:37 +07:00
hathach
77d0a5a10d
msc spiflash example work in read mode (write require using of erase and cache) 2019-05-13 00:55:27 +07:00
hathach
8c2e639ce5
add single LUN API for MSC 2019-05-13 00:53:24 +07:00
hathach
df5219c3d5 clean up 2019-05-11 00:12:15 +07:00