Giter VIP home page Giter VIP logo

pro_trinket_usb_keyboard_library's Introduction

Adafruit Pro Trinket USB Keyboard Library Build Status

ProTrinketKeyboard is Adafruit's Pro Trinket USB HID Arduino Library

ProTrinketKeyboard allows the user to implement a simple USB keyboard using an Adafruit Pro Trinket (ATmega 328P based)

Please see ProTrinketKeyboard.h for usage documentation, examples are also included

ProTrinketKeyboard uses V-USB (http://www.obdev.at/products/vusb/) to implement USB with a bitbang technique. See the folder "usbdrv" for V-USB files.

Adafruit's Pro Trinket can do almost anything that V-USB can do, including USB mouse, keyboards, joysticks, gamepads, MIDI devices, and much more (including custom devices that do not fit any existing category).

Copyright (c) 2015 Adafruit Industries All rights reserved.

ProTrinketKeyboard is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

ProTrinketKeyboard is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with ProTrinketKeyboard. If not, see http://www.gnu.org/licenses/.

Version History

Version 1.0 Works with Pro Trinket 5V at 16 MHz Mike Barela Version 1.1 Works with Pro Trinket 5V at 16 MHz and Pro Trinket 3V at 12 MHz Mike Barela

pro_trinket_usb_keyboard_library's People

Contributors

evaherrada avatar hoffmannjan avatar ladyada avatar tdicola avatar tyeth avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pro_trinket_usb_keyboard_library's Issues

Feature Request: ISR-driven Example

I'm trying to use this library but I want the keypress handler to be ISR-driven, rather than by polling.

I have adapted the example code, and added a call to attachInterrupt(..) in the setup function. This causes a compile error:

WInterrupts.c.o (symbol from plugin): In function `attachInterrupt':
(.text+0x0): multiple definition of `__vector_1'
/var/folders/st/18vtghg95f7g8wmtqcdsj3x00000gn/T/arduino_build_207015/libraries/Pro_Trinket_USB_Keyboard_Library/usbdrvasm_includer.S.o:/Users/j/Documents/Arduino/libraries/Pro_Trinket_USB_Keyboard_Library/usbdrv/usbdrvasm16.inc:35: first defined here

The code triggering this, added to my setup function looks like:
attachInterrupt(digitalPinToInterrupt(PIN_BUTTON_STRING), keyPressISR, FALLING);

My implementation attempt aside, I would quite appreciate an example of using this excellent library, with the key presses being handled by an ISR. That'd be most excellent to offer.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.