Skip to content

rPi GPIO as output for artisan internal PWM #1106

Answered by roasterdave
treyd3 asked this question in Q&A
Discussion options

You must be logged in to vote

Artisan dies not directly support such control of GPIOs. However Artisan does interface nicely with external programs that can control whatever you desire. Thus, you will need to write your own control program for that GPIO/PWM.

Assuming you want to control the PWM with a slider in Artisan, you set the slider's action to "Call Program" and enter the appropriate paths to execute your program. When the slider is adjusted Artisan will start that program and pass it the desired PWM setting. A similar approach works for buttons and alarms as well.

Here is an example using a simple Python program. This program takes a command line value and writes it to a file, currval.txt. Your program would o…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@treyd3
Comment options

Answer selected by treyd3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants