summaryrefslogtreecommitdiff
path: root/usb/README.md
diff options
context:
space:
mode:
authorYuval Adam <yuval@y3xz.com>2016-03-26 01:25:47 +0300
committerYuval Adam <yuval@y3xz.com>2016-03-26 01:25:47 +0300
commit6b948aa9b2b48251940db5ebfc33877a887d7fb7 (patch)
treec8cc0777d5b031b74bdec52590d817b86c08534d /usb/README.md
parenta7925a5ff45906ff87a2e83f522202b4e22b801e (diff)
Rename keyboard -> USB
Diffstat (limited to 'usb/README.md')
-rw-r--r--usb/README.md26
1 files changed, 26 insertions, 0 deletions
diff --git a/usb/README.md b/usb/README.md
new file mode 100644
index 0000000..5056908
--- /dev/null
+++ b/usb/README.md
@@ -0,0 +1,26 @@
+# USB
+
+Neat and simple example of how the digispark can become a USB device and react to interrupts. Heavily based on http://codeandlife.com/2012/01/29/avr-attiny-usb-tutorial-part-3/
+
+## Usage
+
+Build the program and flash it as usual to the digispark.
+
+```bash
+$ make clean && make
+$ micronucleus usb.hex
+```
+
+After the program loads, you should see a new USB device:
+
+```bash
+$ lsusb
+Bus 111 Device 222: ID 16c0:05dc Van Ooijen Technische Informatica shared ID for use with libusb
+```
+
+You can now flip the LED by calling the test program, requires root privilege or proper udev rules:
+
+```bash
+$ ./usbtest on
+$ ./usbtest off
+```