Others can probably answer better than I can, especially since I have not played with PWM mode yet on the Edison.
Which board do you have? Edison with Arduino or simple breakout board?
If you have the Arduino board, then that should work as 254 is the input/output selector associated with GPIO182 on the arduino board. Likewise for 222 for the PU/PD control.
However for the simple small Intel breakout board, they do not have this additional hardware.
My guess (from playing with MRAA and working on getting Arduino IDE to work with this board), You would make all of the IO pin changed directly with pin 182.
Probably things like:
Probbly want to set /sys/class/gpio/182/direction to out
probably need to set /sys/kernel/debug/gpio_debug/gpio182/current_pinmux to probably mode1
Not sure what else.
there are python examples in the mraa package that you could use as a template for your specific pin.
if using the mraa libraries, you would call it by mraa.Pwm(2)
cycle-pwm3.py (by Thomas Ingleby of Intel, without the comments)
---- file begin
x = mraa.Pwm(3)
value = value + 0.01
if value >= 1:
value = 0.0
---- end file
also Intel has a repo for you to download and install the updated libmraa 0.5.2 (image contains libmraa 0.4.4) you'll need to run the following
- echo "src mraa-upm http://iotdk.intel.com/repos/1.1/intelgalactic" > /etc/opkg/mraa-upm.conf
- opkg update
- opkg install libmraa0