GithubHelp home page GithubHelp logo

bonkers's People

Contributors

fidian avatar pfink avatar rk295 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

bonkers's Issues

Centos 6 compilation verification

All good on CentOS6, I've not plugged the button in yet, but here are the libusb packages I needed and proof it compiles without warnings/errors:

[robin@trin][~/GIT/bonkers]
master ❯ rpm -qv libusb1 libusb1-devel
libusb1-1.0.9-0.6.rc1.el6.i686
libusb1-devel-1.0.9-0.6.rc1.el6.i686
[robin@trin][~/GIT/bonkers]
master ❯ cat /etc/redhat-release
CentOS release 6.6 (Final)
[robin@trin][~/GIT/bonkers]
master ❯ make
gcc -Wall -O2 -o bonkers bonkers.c -lusb-1.0
[robin@trin][~/GIT/bonkers]
master ❯ ./bonkers
Failed opening device descriptor (you may need to be root)...
[robin@trin][~/GIT/bonkers]
master ❯

printf invalid directive from big-red-button.sh

Hiya, I noticed the following when trying to run the example script big-red-button.sh. The Ubuntu (15.04) executable /usr/bin/printf lacks %q support. The bash built-in has it however, and changing the #!/bin/sh at the top of the script to #!/bin/bash removes the error.

 ❯ sudo ./bonkers -c examples/big-red-button.sh
State switched from '' to '0 1'
Strange arguments:examples/big-red-button.sh: 44: printf: %q: invalid directive

 ❯ which printf
 /usr/bin/printf
 ❯ /usr/bin/printf --version
 printf (GNU coreutils) 8.23
 Copyright (C) 2014 Free Software Foundation, Inc.
 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
 This is free software: you are free to change and redistribute it.
 There is NO WARRANTY, to the extent permitted by law.

 Written by David MacKenzie.
 ❯ bash --version
 GNU bash, version 4.3.42(1)-release (x86_64-pc-linux-gnu)
 Copyright (C) 2013 Free Software Foundation, Inc.
 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

 This is free software; you are free to change and redistribute it.
 There is NO WARRANTY, to the extent permitted by law.
 master ❯

Overflow with USB Stress Ball

Thank you for writing this! However, I just compiled master (83894e2) and I'm getting a runtime error:

$ sudo ./bonkers -v      
Attempting to open Dream Cheeky - USB Fidget (Soccer [Football]) (vendor 0x1d34, device 0x0001)
Attempting to open Dream Cheeky - USB Fidget (Basketball) (vendor 0x1d34, device 0x0002)
Attempting to open Dream Cheeky - USB Fidget (Golf) (vendor 0x1d34, device 0x0003)
Attempting to open Dream Cheeky - Big Red Button (vendor 0x1d34, device 0x000d)
Attempting to open Dream Cheeky - Stress Ball (vendor 0x1d34, device 0x0020)
Kernel driver not active
Interface claimed
Detecting events
Error sending report - libusb error -8
Exit code was changed: 1
Closing USB

The libusb documentation reports this as simply "overflow".

Not sure how this happens or why.

Yes, I tried unplugging it, plugging it back in, and immediately re-running bonkers.

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.