Programmable?
-
I have a question, where did place the call to the python scrip in runcommand.sh?
-
I don't think there's a specific place you need to put it. Just outside any function should do. Did you try to put it somewhere and it failed?
-
I first tried putting it at the very end, right before exit and the light came on after I exited the game not when I started it. I then placed the call near the beginning, right before the first if statement and now the light comes on when I start a game.
-
I just recently updated my Raspbian desktop image to the latest version since I saw it was available and decided to tackle getting the PiGlow up and running on the Pi3 and it was a total success! Setting it up was a breeze, however I didn't follow the tutorial I posted verbatim. Instead I followed most of what is provided here: https://github.com/Boeeerb/PiGlow For the sake of posterity here's what I did:
First I enabled I2c interface in raspi-config. Next do sudo apt-get install python-smbus python-psutils -y (psutils isn't really necessary I don't think but is used for an example to display cpu usage) After that use sudo nano /etc/modules to open the modules file. Make sure to add the following:
i2c-dev
i2c-bcm2708Ctrl + x and y to exit save. Now do a reboot. After rebooting go back to the command line and create the directory for PiGlow and then change to it so:
mkdir piglow
cd piglowGet the PiGlow module:
wget https://raw.github.com/Boeeerb/PiGlow/master/piglow.pyDownload the test script:
wget https://raw.github.com/Boeeerb/PiGlow/master/Examples/test.pyNow just run sudo python test.py and if everything goes smoothly you can insert brightness values from 0 to 255 for each led color.
Sorry if this was an unnecessary explanation but I hope it might help anyone else who wants to do something like this with the PiGlow. Now I just need to make up some scripts and put them in the appropriate place in Retropie.
-
Thank You @diegzumillo for your time and effort in figuring out how to make it possible. Thank you @mediamogul @dankcushions @tipoto and @darthpaul as well!
-
@DxFx does this mean that the PiGlow is programmable to change the lights when different emulators open?
-
@kcc406 It should. There's 3 sets of leds for each color and 6 colors in all (white, blue, green, yellow, orange, red) so that's a total of 18 leds. What I was thinking was for a certain brand/company use a certain color. (Red for Nintendo, blue for Sega etc.)
-
@DxFx I am sorry i dont think i was clear about my question,
I was wondering if the PiGlow would only light up the correct buttons that are only used for the certain emulator?
example; when i run NES it would light up only a,b,start,select, and the joystick, then with SNES it would do A,B,X,Y, start,select, and the joystick
-
@DxFx I am sorry i dont think i was clear about my question,
I was wondering if the PiGlow would only light up the correct buttons that are only used for the certain emulator?
example; when i run NES it would light up only a,b,start,select, and the joystick, then with SNES it would do A,B,X,Y, start,select, and the joystick
-
@tipoto iI was reading you post and i was wondering if you could help me on this, or let me know if its even possible, I have a pi3 with an ipac i/o wil the roms running off a HDD, and would like to run leds on a emulator bases and it looks like your script will work but i am not sure where you loaded then in to and i am not sure if your code will would with my ipac.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.