Answered step by step
Verified Expert Solution
Question
1 Approved Answer
need help for these code in python only, number 15 first then if u can 14 too, and pins must be from pin reference 14.
need help for these code in python only, number 15 first then if u can 14 too, and pins must be from pin reference
14. For loop and RGB LED: Create a list that contains the following characters {'r','g': 'b', 'k', 'm', 'p', 't'}. Create a for loop that cycles through these characters and changes the color of the RGB LEd. r=red, g = green, b = blue, k = black, m = magenta, p = pink, t = teal 15. For loop and RGB LED with printing: Enhance the Q14 by printing the color that is being displayed by the LED to the serial monitor. Pin 6 Module Arduino Pin Reference Pin_0 Pin_1 Pin_2 Pin_3 Pin_4 Pin_5 Pin_6 Pin_7 Pin_8 Pin_9 Pin_10 Pin_11 Pin_12 Pin_13 Pin_AO Pin_A1 Pin_A2 Pin_A3 Pin_A4 SUBTYPE_DO_1 Pin 3 SUBTYPE_DO_2 Pin 5 SUBTYPE_DO_3 SUBTYPE_DO_4 Pin 12 SUBTYPE_SW_1 Pin 2 SUBTYPE_SW_2 Pin 4 SUBTYPE_SW_3 Pin 7 SUBTYPE SW_4 Pin 8 SUBTYPE_SW_5 Pin 9 SUBTYPE_SW_6 Pin 10 SUBTYPE WATER Pin AO SUBTYPE_MIC Pin 3 Pin A1 SUBTYPE_NTC Pin A2 SUBTYPE PHOTO Pin A3 SUBTYPE_MPU Pin A4 SUBTYPE RTC Pin A4 SUBTYPE_JOYSTICK Pin 2 Pin AO Pin A1 SUBTYPE_DHT Pin 2 SUBTYPE_ONE_SSEG Pin 2 Pin 3 Pin 4 SUBTYPE_ROT Pin 2 Pin 3 Pin 4 SUBTYPE_DC_MOTOR Pin 3 Pin 4 Pin 5 SUBTYPE_RGB Pin 3 Pin 5 Pin 6 SUBTYPE_IR_RECEV Pin 6 SUBTYPE PIR Pin 7 SUBTYPE_PAS_BUZZ Pin 8 SUBTYPE SERVO Pin 9 SUBTYPE_ULTRA Pin 11 Pin 12 SUBTYPE_LED_MATRIX Pin 10 Pin 11 Pin 12 SUBTYPE_LED_EIGHT Pin 9 Pin 11 Pin 12 SUBTYPE_RFID Pin 9 Pin 10 Pin 11 Pin 12 Pin 13 SUBTYPE STEPPER Pin 8 Pin 9 Pin 10 Pin 12 SUBTYPE_LCD Pin 7 Pin 8 Pin 9 Pin 10 Pin 11 Pin 12 SUBTYPE_KEYPAD Pin 2 Pin 3 Pin 4 Pin 5 Pin 6 Pin 7 Pin 8 Pin 9 SUBTYPE FOUR_SSEG Pin 2 Pin 3 Pin 4 Pin 5 Pin 6 Pin 7 Pin 8 Pin 9 Pin 10 Pin 11 Pin 12 Pin 13Step 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