Question: 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

1 Expert Approved Answer
Step: 1 Unlock

i httpscreatearduinocceditorrishu11f67824557b8c49df9003eld7... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!