Question
Please create program in C 1. A baby monitor system detects motion using a sensor (A0=1). The system shouldsound an alarm (B0=1) if no motion
Please create program in C
1. A baby monitor system detects motion using a sensor (A0=1). The system shouldsound an alarm (B0=1) if no motion is detected for at least 90 seconds. A button(A1) or detected motion resets the system.
2. Create a festive lights display with 8 light bulbs (B7-B0). When activated (A0=1),the appearance is of two balls bouncing off each other, as follows: 10000001,01000010, 00100100, 00011000, 00100100, 01000010, 10000001, repeat. Eachoutput configuration lasts for one second. Use bit-manipulation methods (and, or, complement) rather than numeric values. When deactivated, the display turns off all bulbs within 3 seconds
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started