Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

If PIND5 is high Add function () If PIND6 is high Subtract function() If neither is high (make PIND7 view) View Function() How do you

If PIND5 is high

Add function ()

If PIND6 is high

Subtract function()

If neither is high (make PIND7 view)

View Function()

How do you write this in ardunio (c++) programming?

Actually it for food tracker and we are using a switch that has three way one to add foods in the lists , the other how much food are used up and the third to view status of the lists. The input port for the Atmega 328p are PORTD5, PORTD6,PORTD7 and It's goes out to PORTB4, PORTB3 and PORTB2

 




Step by Step Solution

3.39 Rating (158 Votes )

There are 3 Steps involved in it

Step: 1

i httpscreatearduinocceditorrishu11f67824557b8c49df9003eld7... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts of Database Management

Authors: Philip J. Pratt, Joseph J. Adamski

7th edition

978-1111825911, 1111825912, 978-1133684374, 1133684378, 978-111182591

Students also viewed these Accounting questions

Question

What is a DBA? Why is this position necessary?

Answered: 1 week ago

Question

What are stored procedures? What purpose do they serve?

Answered: 1 week ago

Question

What is location transparency?

Answered: 1 week ago