Kees Smit

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: TouchSensor event #5587
    Author Image
    Kees Smit
    Participant

    Ouch, stupid me…
    The solution was simple. I made the mistake to create a MonoBrickFirmware.Sound.Speaker object in the method that is called whenever the event occurs (method StateChanged in TouchSensorEvents.cs). It takes some time to create this object for the first time, that’s why the events didn’t seem to come through at first press on TouchSensor. Instead of playing a sound I now write a line to the LCD and now everything works fine.
    I hope my explanation is clear enough to understand it. As said before, I’m a newbe to C#…
    Furthermore I simplyfied the code, see attachment.

    Regards,
    Kees

    • This reply was modified 7 years, 8 months ago by Author ImageKees Smit.
    Attachments:
    You must be logged in to view attached files.
    in reply to: No Programs has been uploaded #5572
    Author Image
    Kees Smit
    Participant

    Hi Anders,

    Thanks for your quick response. It all works fine now.

    Gr. Kees

    in reply to: Pixy Cam support #5555
    Author Image
    Kees Smit
    Participant

    I don’t think it’s supported yet. But it would be great! I’m thinking of buying one (the LEGO version), but it’s a pity you can only program it with EV3 software…

    Gr. Kees

    in reply to: GyroSensor inaccessible #5552
    Author Image
    Kees Smit
    Participant

    Problem solved with tip on post “No Ultrasonic sensor class in library” by Edward Hobs on march 15, 2015.
    I built te DLL using sources on Github and now it works fine (both GyroSensor and UltrasonicSensor).

Viewing 4 posts - 1 through 4 (of 4 total)
Posted in

Make a donation