How can I write directly to the PWM ports?  I'm working on a lightning routine and changing it via normal means is not responsive enough.
Something like analogWrite(some pin number, some byte).
--Colin
			
			
									
						
										
						Write directly to PWM pin?
- cosmith71
- Posts: 1432
- Joined: Fri Mar 29, 2013 3:51 pm
- Location: Oklahoma City
- cosmith71
- Posts: 1432
- Joined: Fri Mar 29, 2013 3:51 pm
- Location: Oklahoma City
Re: Write directly to PWM pin?
Roberto?
			
			
									
						
										
						- 
				rimai
- Posts: 12857
- Joined: Fri Mar 18, 2011 6:47 pm
Re: Write directly to PWM pin?
Yes.
Use analogWrite...
			
			
									
						
							Use analogWrite...
Code: Select all
analogWrite(daylightPWMPin,255);
analogWrite(actinicPWMPin,255);
Roberto.
			
						- cosmith71
- Posts: 1432
- Joined: Fri Mar 29, 2013 3:51 pm
- Location: Oklahoma City
Re: Write directly to PWM pin?
Thanks!  That's much better.  Now I just need to figure out a good lightning algorithm.
			
			
									
						
										
						