Why digitalWrite(), digitalRead() is slow

Arduino defines digital I/O connections with numbers, which map to the actual ports (A, B,C, D, E, F…) and port bits (0..7).

The mapping is actually slow as is described here. My LED library attempt avoids this and uses ports directly.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s