Hello,

I noticed that PWM, P8_13, on the BBBW is having issues with the 
Adafruit_BBIO framework. I have this software I found within a book I 
purchased, "Getting Started with BeagleBone" (Richardson 2014). Anyway, The 
software works without me using PWM but I would like to use PWM to make a 
LED go bright to dim just by using the web page format found via Flask (a 
Python Module). The error I incurred while running this software was this 
and only this: *RuntimeError: Problem with a sysfs file.*

So, here is the software:

   * from flask import Flask, render_template*
*    app = Flask(__name__)*
*    import Adafruit_BBIO.GPIO as GPIO*
*    import Adafruit_BBIO.PWM as PWM*

*    PWM.start("P8_13", 0.0)*

*    @app.route("/")*
*    def hello():*
*        if GPIO.input(P8_11):*
*            doorStatus = "open"*
*        else:*
*            doorStatus = "closed"*
*        templateData = {*
*            'doorStatus': doorStatus,*
*        }*
*        return render_template('main-door.html', **templateData)*
    
*    @app.route('/ledLevel/<level>')*
*    def pin_state(level):*
*        PWM.set_duty_cycle("P8_13", float(level))*
*        return "LED level set to " + "."*
    
*    if __name__ == "__main__":*
*        app.run(host='192.168.7.2', port=5000, debug=True)* 

So, please give advice or if you are using Adafruit_BBIO, please allow me 
some "behind-the-scenes" look at the software to change to get things 
"cracking."

Seth

P.S. I am sure there is a cure. Direct me to the software and I can start 
on it. I found a link to the sourceforge items and software. Is this where 
I should begin?

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/a1177a92-8161-40bb-ac4d-1d75b6f63d78%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to