Tiny-bit icon indicating copy to clipboard operation
Tiny-bit copied to clipboard

Program Error: Cannot read property 'onPressedEvent' of undefined - MakeCode editor

Open ngammarano opened this issue 5 years ago • 3 comments

Hi, in the MakeCode editor, when I drag a block "on button pressed" from the Mbit_IR block category, an error message shows up: "Program Error: Cannot read property 'onPressedEvent' of undefined

The following screenshot shows the error: image

ngammarano avatar Nov 15 '19 16:11 ngammarano

I have the same problem, did you ever get it resolved?

bakaletza avatar Nov 22 '19 12:11 bakaletza

I did not resolve it, the error message keeps appearing, but I think the program works anyway.

ngammarano avatar Nov 22 '19 12:11 ngammarano

Hello! On tiny:bit I consider buying the robot for school but so far I see some issues there. Would you consider changes for the project?

  1. reading from patrol would be better as a value (oval), with a parameter left-right
  2. help and, at least tooltips are highly desirable
  3. help (tooltip) should advice on pin for neopixel,especially if that info is not marked on the robot.
  4. Message for absent property would be better eliminated

Is there any examples of MakeCode projects for the robot? Do you know by chance if they send a battery in the package?

Thank you.

Mike

semionenkov avatar Jun 11 '20 12:06 semionenkov