Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Level 4: Create a circuit that has 4 LED's of different colours. In order from left to right the value of each light is 8-4-2-1
Level 4: Create a circuit that has 4 LED's of different colours. In order from left to right the value of each light is 8-4-2-1 these values are used to create binary numbers. Using the light sensor mapped from 0 to 15 have the lights count in binary as you move the light sensor slider from left to right. Ex when light sensor is at 5 LED's will be OFF - ON - OFF - ON .The values associates with the ON LED's are 4 + 1 = 5. Can use: data = map(data,6,679,0,15); //map the data value to 0-15
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