fidian / bonkers Goto Github PK
View Code? Open in Web Editor NEWSmall utility to work with the Big Red Button, USB Fidget and others under Linux.
License: Other
Small utility to work with the Big Red Button, USB Fidget and others under Linux.
License: Other
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 ❯
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 ❯
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.