
Adjusts the great pinscape controller to work with a cheap linear potentiometer instead of the expensive CCD array
Fork of Pinscape_Controller by
Diff: USBJoystick/USBJoystick.h
- Revision:
- 4:02c7cd7b2183
- Parent:
- 3:3514575d4f86
- Child:
- 6:cc35eb643e8f
--- a/USBJoystick/USBJoystick.h Wed Jul 23 17:53:28 2014 +0000 +++ b/USBJoystick/USBJoystick.h Thu Jul 24 05:50:36 2014 +0000 @@ -90,11 +90,11 @@ * @param product_id Your product_id (default: 0x0002) * @param product_release Your product_release (default: 0x0001) */ - USBJoystick(uint16_t vendor_id = 0x1234, uint16_t product_id = 0x0100, uint16_t product_release = 0x0001): + USBJoystick(uint16_t vendor_id = 0x1234, uint16_t product_id = 0x0100, uint16_t product_release = 0x0001, int waitForConnect = true): USBHID(8, 8, vendor_id, product_id, product_release, false) { _init(); - connect(); + connect(waitForConnect); }; /**