Optimising Arduino Code using PIN registers

Alternative to using pinmode, digitalRead and digitalWrite commands to manipulate arduino pins.

Feb 5, 2022

2158 views

0 respects

Components and supplies

1

Arduino Nano R3

1

7 Segment LED Display, InfoVue

1

Resistor 220 ohm

1

LilyPad LED Blue (5pcs)

Apps and platforms

1

Arduino IDE 2.0 (beta)

Project description

Code

Controlling 7 segment display with pinmode, digitalWrite

arduino

Controlling 7 segment display with pinmode, digitalWrite

arduino

Controlling 7 segment display with PIN registers

arduino

The code is not only optimised and much shorter. It is also much faster in terms of sending appropriate signals to Arduino pins.

Comments

Only logged in users can leave comments

Dziubym

0 Followers

0 Projects

Table of contents

Intro

0

0