Skip to content

YuriCosta/Timer-Interruption-Provider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

author: <Yuri Costa (yurioor@hotmail.com)>
description:
Provides internal interruptions at desired frequency
	
Use like this:
		
	Timer_Interruption_Provider *mTimer_Interruption_Provider;
	mTimer_Interruption_Provider = new Timer_Interruption_Provider();
	mTimer_Interruption_Provider->set_timer( double frequency, int timer );
		
	Where	 0.23828125 < frequency  < 8000000 if you are using timer1 [set_timer( frequency, 1 );]
               61.275390625 < frequency  < 8000000 if you are using timer0 or 2 [set_timer( frequency, 1//2 );]
		
Check out the exemple to see how implement this class.

Tested with sucess in Arduino uno rev3

About

Provides internal interruptions at desired frequency for Arduino

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published