(Exercise) Code Homework no.05
Instructions
Make sure that you upload each code example to the respective area in the spreadsheet. Create a separate .py for each exercise. Please make the files are named clearly, they need at least, your name, the #, and the exercise number so something like “SantiagoBenjamin__WU01__E01.py” would be something I might name my files, but you’re not obligated to use this exact syntax.
Make sure that each of your code examples has comments!
Questions
- Make the Circuit Playground control the keyboard in the following way:
- Button A will type someone's first name when pressed
- Button B will type someone's last name when pressed
(The name can be anyone, celebrity, professor, you, your mom, etc.)
- Make the Circuit Playground control the keyboard in the following way:
- Find the correct codes for the arrow keys (up, down, left, right) as well as spacebar, and enter.
- Make it such that the touchpads (whichever ones you choose A1-A7) will function as the arrow keys, and b will function as spacebar, and a will function as enter.
- confirm it works at this link.
- (this won't be something you can show in code) but use the CPX to control an online game at this link
-
Modify the previous question's code. Instead of using the touch pads to control the arrow keys, make them move the mouse up, down, left or right (All other code is the same)
-
Make the Circuit Playground control consumer controls in the following way:
- Button A will increase the volume
- Button B will decrease the volume