Cross platform PWMout wizard

jodicalhon

New Member
On my Linux box I've been using Kate, with its inbuilt command-line access, to write and download my programs.

But I don't have a pwmout wizard, and have not yet heard of one for Linux. If there is one, then I've just wasted 40 minutes.

I've written a small Python script for a PWMout wizard GUI.

I've done a small amount of testing, and it is accurate w.r.t. the official Rev-ed version in the Program Editor. It does not tell the available pwm pins of your chip, nor can you copy the code. It's just a calculator. Of course, if you want to dress it up a little you can add to the script.

It has a lower limit to the pwm frequency that it will calculate for each processor speed (4MHz, 8Mhz, etc), and limits the dutycycle to 100%.

It has minimal error checking, so I'm sure it can be bamboozled if one tries, but I'm assuming people will use it to produce the required pwmout command.

Make it executable with:
chmod +x pwmwiz.txt

Then launch with:
./pwmwiz.txt

(Actually, I only added the .txt extension so I could upload the file to this site. Change it back to .py, or get rid of the extension altogether.)

Attached are pwmwiz.txt (updated the code: 22/12/08) and a screenshot.
 

Attachments

Last edited:
Top