Main script for cooperative multitasking example. More...
Functions | |
| def | Lab2_main.main () |
| The main program. | |
Variables | |
| Lab2_main.pinB6 = pyb.Pin(pyb.Pin.cpu.B6) | |
| Creates a new pin object associated with pin B6 on the Nucleo. More... | |
| Lab2_main.pinB7 = pyb.Pin(pyb.Pin.cpu.B7) | |
| Creates a new pin object associated with pin B7 on the Nucleo. More... | |
| Lab2_main.encoder1 = encoder.Encoder(pinB6, pinB7, 4) | |
| Creates an encoder object. More... | |
Main script for cooperative multitasking example.
Implements cooperative multitasking using tasks implemented by finite state machines.
| Lab2_main.encoder1 = encoder.Encoder(pinB6, pinB7, 4) |
Creates an encoder object.
Specifies the encoder object for corresponding motor
| Lab2_main.pinB6 = pyb.Pin(pyb.Pin.cpu.B6) |
Creates a new pin object associated with pin B6 on the Nucleo.
Defines a variable for pinB6 corresponding to encoder
| Lab2_main.pinB7 = pyb.Pin(pyb.Pin.cpu.B7) |
Creates a new pin object associated with pin B7 on the Nucleo.
Defines a variable for pinB7 corresponding to encoder