jensmith25
Senior Member
I have another issue related to some of my recent threads for programming flickering Lights on the 18M2 high power board. The idea is to have two channels so you get different flickering over 24 lights (two sets of 12). I want to put them through the onboard FETs (rather than one set through the motor driver which has the other pwm output pin).
I have both programmes running fine separately but when I put them together the tune command seems to conflict with the pwmout command so the LED is just static on. I can't figure out what's going on. I've simplified the code to try to figure out what's happening but it's still not working. Is there a known conflict with the tune command? Any ideas?
I have both programmes running fine separately but when I put them together the tune command seems to conflict with the pwmout command so the LED is just static on. I can't figure out what's going on. I've simplified the code to try to figure out what's happening but it's still not working. Is there a known conflict with the tune command? Any ideas?
Code:
#Picaxe 18m2
start0: 'Flickering effect
pwmout B.3,249,1023
pause 500
pwmout B.3,249,5
pause 500
goto start0
start1:
goto flickerslow
goto start1
flickerslow: 'Flickering effect slow - Silent Night 1 slow speed
tune B.2, 12, ($27,$69,$27,$E4,$27,$69,$27,$E4,$C2,$02,$EB,$C0,$00,$E7,$E9,$29,$00,$6B,$29,$27,$69,$27,$E4,$E9,$29,$00,$6B,$29,$27,$69,$27,$E4,$C2,$02,$05,$42,$2B,$C0,$C4,$00,$27,$24,$27,$65,$22,$E0)
goto start1