RE: Adafruit_BBIO and ErrorCodes/Seth

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/’)
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?

Hi, it looks like you also raised this issue on github:
https://github.com/adafruit/adafruit-beaglebone-io-python/issues/168

I prefer to continue the conversation inside that issue and have replied there.

thanks,
drew

Okay Sir,

I will check it out soon.

Seth

If you are pay attention Mr. Drew, LOOK online at the site where I was “complaining” and not remembering.

Sorry sir.

Seth

P.S. Thank you for the support.

I am not sure that I understand.

Are you referring to issue #168?

I see that you have closed it:
https://github.com/adafruit/adafruit-beaglebone-io-python/issues/168

thanks,
drew