Changeset a6ad6e8 in avrstuff
- Timestamp:
- Feb 7, 2023, 6:24:17 PM (15 months ago)
- Branches:
- main
- Children:
- 110c692
- Parents:
- 3a3fe84
- git-author:
- Adrien Destugues <adrien.destugues@…> (07/02/2023 12:30:52)
- git-committer:
- PulkoMandy <pulkomandy@…> (07/02/2023 18:24:17)
- Location:
- kbd/pcw2hid
- Files:
-
- 1 edited
- 7 moved
Legend:
- Unmodified
- Added
- Removed
-
kbd/pcw2hid/README.md
r3a3fe84 ra6ad6e8 1 Gravis GrIPto HID adapter2 ========================== 1 Amstrad PCW keyboard to HID adapter 2 =================================== 3 3 4 GRiP is (or was?) a custom protocol designed by Gravis to allow their gamepad 5 to use more than 4 buttons on the PC joystick port. The Gravis Gamepad Pro is 6 one of the best PC gamepads ever manufactured, and the USB version is not that 7 common (and also looks less nice with the black plastic). 8 9 This interface allows to use these gamepads on an USB port, for modern machines 10 where the traditional gameport is not available. It supports up to 4 gamepads 11 (2 gameports, each allowing to use 2 gamepads thanks to Gravis chaining system). 12 13 The gamepads are each reported as a separate USB report, and show up as 4 independant 14 gamepads on both Windows and Haiku. Buttons are assigned in this order: 15 green, yellow, red, blue, L1, R1, start, select, R2, L2. This order is reasonable 16 (but not perfect) while allowing to reuse the bits received from the gamepad almost 17 directly to fill the HID report. The only change needed is inverting the Y axis, 18 because USB wants the up direction to be lowest values. 4 This adapter allows to connect the keyboard from the Amstrad PCW to a modern computer using USB. 19 5 20 6 It is powered by an AT90USB AVR microcontroller, because these implement USB in … … 24 10 avoid code duplication. Download and extract it yourself, or set the LUFA_PATH variable 25 11 to where you already have it when compiling. 26 27 [Further reading on GrIP](http://pulkomandy.tk/_/_Electronique/_Gravis%20Interface%20Protocol)28 29 I have built some boards and can ship them to you if you don't want to build one yourself. The30 cost for an assembled and tested board is 15€ (covering the cost of components and shipping).31 Contact me if you are interested in getting one. -
kbd/pcw2hid/code/makefile
r3a3fe84 ra6ad6e8 18 18 F_USB = $(F_CPU) 19 19 OPTIMIZATION = s 20 TARGET = Joystick21 SRC = $(TARGET).c Descriptors.c grip.cpp $(LUFA_SRC_USB) $(LUFA_SRC_USBCLASS)20 TARGET = Keyboard 21 SRC = $(TARGET).c Descriptors.c protocol.cpp $(LUFA_SRC_USB) $(LUFA_SRC_USBCLASS) 22 22 LUFA_PATH ?= lufa-LUFA-210130/LUFA 23 23 CC_FLAGS = -DUSE_LUFA_CONFIG_HEADER -IConfig/
Note:
See TracChangeset
for help on using the changeset viewer.