Skip to content

Instantly share code, notes, and snippets.

@dwilkins
Created April 7, 2014 17:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dwilkins/10024163 to your computer and use it in GitHub Desktop.
Save dwilkins/10024163 to your computer and use it in GitHub Desktop.
Hello,
I need to use the PWM for my project using cubieboard2. I know this has been asked numerous times but I still do not know what to do.
This is my first time using Linux and Debian so I have no experience at all.
How do I patch my cubieboard using your files on github? Could you shed some light please on how to patch?
Right now I am using Cubian from here http://cubian.org/downloads/ and using LXDE X windows.
They said it is already included in Cubian that I am using so I've tried this commands (by Arne)
on Cubian it goes like this:
$ sudo -s
# modprobe pwm_sunxi
# cd /sys/class/pwm-sunxi/pwm0
# echo 50 > duty_percent
# echo 2400 > duty
# echo 1 > run
@dwilkins
Copy link
Author

dwilkins commented Apr 7, 2014

Are there any messages in /var/log/messages when you do``modprobe pwm_sunxi`

@KevinEG
Copy link

KevinEG commented Apr 8, 2014

Ah I guess it's a false alarm, I didnt add:

[pwm0_para]
pwm_used = 1
pwm_period = 8000
pwm_duty_percent = 50

or such to my script.bin my mistake sorry!
Now the folder does exist and later I'm trying it out on an oscilloscope.
Thanks in advance for replying!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment