-
Notifications
You must be signed in to change notification settings - Fork 47
Conversation
…/microsoft/vscode-python-devicesimulator into users/t-anmah/button-integration
…/microsoft/vscode-python-devicesimulator into users/t-anmah/button-integration
…/microsoft/vscode-python-devicesimulator into users/t-anmah/button-integration
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yay! buttons :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very neat PR. Good job!
src/process_user_code.py
Outdated
cpx._Express__state[event] = new_state.get(event, cpx._Express__state[event]) | ||
|
||
|
||
def update_microbit(new_state): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would make more sense to handle the state changing logic inside each component, instead of having all the different components update state in this method. What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's true... I'll try implementing that for the next commit!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
implemented!
Description:
Microbit button should be fully integrated with the python code.
Type of change