ph1lj
New Member
Posts: 1
|
Post by ph1lj on Nov 8, 2013 12:34:02 GMT -8
Hi I'm eager to test out your App with the RPi and the I2C BMP085, but do not have any of the BlinkM modules. So what file can I modify to stop the demo using these BlinkM modules, just the BMP085
Please advise
|
|
|
Post by SDL on Nov 8, 2013 13:32:11 GMT -8
Hi there!
To stop using the BlinkM modules, go into the ExecuteFiles directory:
cd RasPiConnectServer/ExecuteFiles Then find all the references to Blink
grep Blink *.py You will get something like this:
ExecuteActionButton.py: # conditionally import BlinkM ExecuteActionButton.py: from pyblinkm import BlinkM, Scripts ExecuteActionButton.py: # B-1 does a toggle on a BlinkM module on I2C bus address 0xb (11) ExecuteActionButton.py: blinkm = BlinkM(1,0xb) ExecuteRemoteWebView.py: from pyblinkm import BlinkM, Scripts ExecuteRemoteWebView.py: blinkm = BlinkM(1,0xc) ExecuteServerStatus.py: from pyblinkm import BlinkM, Scripts ExecuteSingleLED.py: from pyblinkm import BlinkM, Scripts
Edit each of those files and comment out or remove the lines above.
That should do it!
Remember that these files will be overwritten when you update RasPiConnectServer. A better way of doing this is to disable the I2C in the config file and then install your own routines in Local.py as explained in the manual. That file is NEVER overwritten by a new release.
You can always copy code from the Execute files if you want to use those routines and controls.
Best regards,
BP
|
|