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?