ENART.HZRN.COM
welcome to my space
X
Search:  
 HOME   [PATCH] Coffee Cooker (GPIO) on SmartXX
[PATCH] Coffee Cooker (GPIO) on SmartXX
Published by: cfz 2010-03-20
Welcome to:enart.hzrn.com

  • For people who have a SmartXX v3 and (not tested) LT OPX, I have made a patch which enables you to use the general I/O (GPIO, known as Coffee Cooker).

    The ticket number is 4870 (http://www.xbmc.org/trac/ticket/4870).
    I've also posted a demonstration video (switching LEDS) on YouTube (http://www.youtube.com/watch?v=mEofMI0mdAc).

    You can activate an output with the following command:
    System.CoffeeCooker( port, value )
    Where port is 0..3 for the port number.
    and value is 0 or 1 to switch it off or on.

    Direct commands:
    (http):http://xbox/xbmcCmds/xbmcHttp?command=ExecBuiltIn¶meter=system.coffeecooker(3,1)
    (ftp):site System.CoffeeCooker(3,1)
    (python):xbmc.executebuiltin( 'System.CoffeeCooker(3,1)' )

    Also in Python, you can use xbmc.getGPIOState(3) to read the current port state, which you can use to highlight a button.

    The hardware is simple: it's similar to the PWMControl hardware pins, so if you connect LEDs, you must add a resistor.
    The four switches available all switch to ground, which means you have to supply a positive voltage.
    In the video I used +5v with 220 ohm resistors on each green LED connected to a rj45 (network) socket, so I can abuse plain network cables :)

    Cheers,
    Tinux


  • Thanks for the patch. It will be reviewed following the atlantis release.


  • cool, this also sounds interesting, if you want to build a "stereo-ambilight" (needs to utilize a external microcontroller for pwm) ;)
    will try it out soon...


  • err.. it was late again last night: "general purpose commands" means "built-in commands"

    more..coffeecooker ;)


  • Thanks for the quick respond.
    Note that the patch includes some comments.

    I hoped there was a way to let general purpose commands return a value, but I noticed that this would include a callback system. Therefore, I commented the 'else' case out, and made an extra python call.

    Also I'm not aware of API calling conventions, so both commands may be subject to change if someone has better names for them.

    Cheers,

    Tinux





  • Walking/Running Puppy - Advise needed
    GridPanel border

    You are looking at:enart.hzrn.com's [PATCH] Coffee Cooker (GPIO) on SmartXX, click enart.hzrn.com to home
  • nikon flash on a canon
  • nikon flash on a canon
  • which telephoto macro lens
  • resizing photos 8x10 and up
  • wanting to jump into automotive photography
  • pictures look cross eyed why
  • d40 phottix battery grip review
  • d300
  • would it be worth it
  • focus points for birds
  • macro flash
  • pricing individual pictures but not a what should i price
  • nd grad filter
  • it s good to have friends
  •  
  • nikon d80 vs 200
  • selling images from website
  • nikon d80 vs 200
  • help with the strobe light
  • how to have the sun appear like a star
  • what do you think of this bracket
  • cleaning mould from this part of my camera body
  • first practice session with new light kit with pic
  • bokeh what is it
  • nikon 24 120mm lens any thoughts
  • cheap tricks
  • tack sharp help with af vr nikkor 80 400mm 4 5 5 6d
  • isn t a normal lens always a normal lens
  •  Homepage | Add to favorites | Contact us | Exchange links | LOGIN | Site map | 
    Copyright© 2008 enart.hzrn.com        Site made:CFZ