I'm trying to dip my toes into parallel processing and have read the section regarding it in the PICAXE Getting Started manual.
I noticed a mention of certain "complex" commands halting the progression of a program, I was wondering if PWMduty was included in those complex commands.
In general, I would like to know if I'm misusing the Parallel Processing feature.
My desired goal is to have an LED cycle through different brightness values in the background while other functions are freed up (like using a remote to trigger other subroutines or turning the LED off). I'm using a common anode RGB LED and a Picaxe 20M2
Here's the test code I'm using:
I noticed a mention of certain "complex" commands halting the progression of a program, I was wondering if PWMduty was included in those complex commands.
In general, I would like to know if I'm misusing the Parallel Processing feature.
My desired goal is to have an LED cycle through different brightness values in the background while other functions are freed up (like using a remote to trigger other subroutines or turning the LED off). I'm using a common anode RGB LED and a Picaxe 20M2
Here's the test code I'm using:
Code:
start0:
symbol RED_LED = c.3
high RED_LED
pwmout pwmdiv4, RED_LED, 249, 599
goto start0
start1:
w1=590
math:
w1=w1 - 10
if w1 = 0 then
w1=590
endif
goto start1:
start2:
main:
pwmduty RED_LED, w1
goto main
goto start2