Question: Hands - on Project 1 . Use time module to make the board go to sleep for different times, such as 1 second and 0

Hands-on Project
1. Use time module to make the board go to sleep for different times, such as 1 second and 0.5 seconds between 10 LED blinking.
2. Write and test an inline assembler code to add two numbers 100 and 500.
3. Illustrate the use of USR button to flash the red LED and then use the RESET button to quit the script.
4. Connect a resistor and an LED as shown in demo program. Answer the following:
a) Which pin LED is connected to?
b) How are the buttons USR and RST used here?
c) What is the purpose of following statements:
y12= machine.Pin('Y12')
y12(0 if y12() else 1)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!