You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Accelerometer on the Micro:bit does not work when flashing with the MicroPython plugin in Pycharm. Readings from the accelerometer remain at 0 for all axis as indicated by printing to the REPL and displaying to the device. uFlash 1.08 was used in this case.
This issue does not occur when flashing the same code to the device using the MU Editor, where accelerometer output works as expected. The same Python 3.6 interpreter was used when testing both (Pycharm, MU Editor) environments.
from microbit import *
while True:
sleep(1000)
x_val = accelerometer.get_x()
print(str(x_val))
display.scroll(str(x_val))
The text was updated successfully, but these errors were encountered:
Accelerometer on the Micro:bit does not work when flashing with the MicroPython plugin in Pycharm. Readings from the accelerometer remain at 0 for all axis as indicated by printing to the REPL and displaying to the device. uFlash 1.08 was used in this case.
This issue does not occur when flashing the same code to the device using the MU Editor, where accelerometer output works as expected. The same Python 3.6 interpreter was used when testing both (Pycharm, MU Editor) environments.
The text was updated successfully, but these errors were encountered: