Commits on Sep 30, 2014
  1. new mpc button handler to add more music

    if the button is pressed while stopped, we look at the song titles in the playlist,
    and search for albums with similar names. Very naive substring searches.
    enqueues the first album we find containing one word from the last song played
    committed Sep 30, 2014
Commits on Sep 2, 2014
  1. more logging, mpc handler for the big button

    call like:
        python | python big-button/ --mpd MPD_SERVER
    When you push the button:
    * if mpd is playing, pause
    * if mpd is paused, play
    Future ideas: if mpd is stopped, play something at random.
    committed Sep 2, 2014
Commits on Sep 1, 2014
  1. send output to serial out

    committed Sep 1, 2014
Commits on Aug 31, 2014
  1. big button: start

    * copy debounce arduino script from the web
    * some readme notes
    committed Aug 31, 2014
Commits on Nov 19, 2010
Commits on Jul 25, 2010
  1. Tweaked the ir_decode bits until I got a sensible value from the remo…

    …te control. Then refactored that into the remote-control.pde, and added it to my lisp driver.
    committed Jul 25, 2010
Commits on Jul 17, 2010
  1. make the listener more useful

    committed Jul 17, 2010
  2. /dev/ttyUSB0 today

    committed Jul 17, 2010
Commits on Oct 10, 2009
  1. Got a nice start on C/Lisp interaction. Combined some serial code to get

    what seems to be the right crazy sb-posix: garbage to no longer need the external call to stty.
    From there, had some trouble debugging the actual serial communication.
    Turns out I needed to, on the arduino, always loop to check for serial availability before reading.  Writing a vector to serial from lisp did not mean the arduino has that entire vector in it's buffer when it starts responding to the first byte.
    I can now:
     * analog read - buggy, only sending the low byte to lisp, need to figure out how to send the whole 0-1023 range.
     * analog write (the arduino holds the pin at that state)
     * digital write
    digital reading should be pretty easy, but I ran into a problem with analog reading and I should do chores.
    Another snag I hit was writing too fast to the arduino.  I changed it so the arduino sends back a "done" byte after it's command processing code, and then made lisp block (on read-byte) until the arduino is done.
    committed Oct 10, 2009
Commits on Sep 29, 2009
  1. Got lisp reading AND writing to the arduino. I needed to issue the pr…

    …oper `stty` command before it would allow me to write without resetting
    the arduino.  Also had to change the :external-format to :ascii, which makes sense.  This $30 microcontroller doesn't understand UTF-8.  Now
    that the arduino is listening for serial input, I have to hit the reset button while uploading new programs to it, otherwise its program
    just reads the bytes like and the avrdude programmer fails.
    committed Sep 29, 2009
Commits on Sep 28, 2009
  1. ignoring a few artifacts

    committed Sep 28, 2009
  2. Got a simple program to say "Hello\n" every 2s, and then a simple lis…

    …p file to read that out. Requires some weird `__cxa_pure_virtual` stuff so the avr-gcc compiler can deal with virtual methods used in the arduino base cpp files.
    refs #1
    committed Sep 28, 2009
Commits on Sep 27, 2009
Commits on Mar 7, 2009
  1. Fixed a bug in the makefile so I could use Serial.print, and then added

    a new program that scans analog ports for a change in value, and prints
    those changes to the serial port.
    I'm trying to get a temperature sensor working, and it's not
    cooperating, and my multi-meter just broke.  I think it's operating like
    a thermistor in the 40K ohm range, so I probably need to adjust my
    circuit so the analog pin can pick it up.
    committed Mar 7, 2009
Commits on Mar 1, 2009
  1. fixed my obiwan error

    committed Mar 1, 2009
  2. Got the math simplified, still some weird jumpyness, but I think that'll

    go away when I use a pot to determine the value.
    committed Mar 1, 2009
  3. Got an array of 5 LEDs used as a basic linear display, showing one

    number up to 1275 (255 for each LED).  The LEDs are dimmed based upon
    the distance on a number line from them to the value.  This simply
    cycles through them, and uses all but one PWM pin.
    Next up: simplify the logic a bit, there's no need to use floats.
    committed Mar 1, 2009
  4. made slowly fading LED program.

    committed Mar 1, 2009
Commits on Feb 28, 2009
  1. got a blink program able to compile and upload to the board using "make"

    and "make upload".
    Had to make many changes to the sample makefile, but that's fine.  I can
    now do everything without the silly java ide that doesn't work well on
    the eeepc.
    Each different experiment will go in its own folder, with its own
    makefile, and all Makefiles will reference, which has the
    heavy lifting.
    committed Feb 28, 2009
  2. first commit

    committed Feb 28, 2009