Skip to content

joshwc/ArduinoLeonardoDigitalFast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

My implementation of fast digital read/write for Arduino Leonardo.

Place file in \Arduino\hardware\arduino\avr\cores\arduino\

Add the following line in Arduino.h: #include "digitalFast.h"

commands: set - set pin to high - use in place of digitalWrite(x,HIGH) clr - set pin to low - use in place of digitalWrite(x,LOW) dr - digitalRead state of pin - use in place of digitalRead(x)

Commands are followed by the pin number eg. set13, clr13, dr13

Each write(set, clr) command consumes just 2 clock cycles

About

Fast digital read/write

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages