Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using energia and a tiva series LaunchPad microcontroller Serial RGB Input - 30 pts Use the rgb() function created in lab 3 in combination with

image text in transcribed

Using energia and a tiva series LaunchPad microcontroller

Serial RGB Input - 30 pts Use the rgb() function created in lab 3 in combination with the Serial library to set the RGB intensity using the serial interface. The user should be able to input three numbers between 0 and 255 separated by a space to set the RGB intensities. Hint: The Serial library contains a .parseInt() function that will automatically convert the next valid integer into an int variable type. See the reference page for more information. Hint: When hitting "Enter" or "Send" to put your data in the serial buffer, the serial monitor will place a newline character ' ' or ASCII OXA at the end. You may need to clear this character from the Serial buffer after reading your numbers. COM4 X 255 0 1271 Send RED: RED: 123 255 GREEN: GREEN: 123 0 BLUE: BLUE: 123 127 Autoscroll Show timestamp Newline 9600 baud Clear output Serial RGB Input - 30 pts Use the rgb() function created in lab 3 in combination with the Serial library to set the RGB intensity using the serial interface. The user should be able to input three numbers between 0 and 255 separated by a space to set the RGB intensities. Hint: The Serial library contains a .parseInt() function that will automatically convert the next valid integer into an int variable type. See the reference page for more information. Hint: When hitting "Enter" or "Send" to put your data in the serial buffer, the serial monitor will place a newline character ' ' or ASCII OXA at the end. You may need to clear this character from the Serial buffer after reading your numbers. COM4 X 255 0 1271 Send RED: RED: 123 255 GREEN: GREEN: 123 0 BLUE: BLUE: 123 127 Autoscroll Show timestamp Newline 9600 baud Clear output

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

Step: 3

blur-text-image

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

More Books

Students also viewed these Databases questions

Question

What is Constitution, Political System and Public Policy? In India

Answered: 1 week ago

Question

What is Environment and Ecology? Explain with examples

Answered: 1 week ago