You are reading a single comment by @Ron and its replies. Click here to read the full conversation.
  • @allObjects @thedamos
    Sad to hear about the light sensor readings after blinking a LED - I intended to fake a proximity sensor by detecting light while still keeping the ability for signalling with LEDs.

    I think the problem could be related to the fact that the light sensor is (in? on?) the red LED, according to the reference: https://www.espruino.com/Reference#l_Puck_light:

    Read a light value based on the light the red LED is seeing

    I'll post my projects soon - I'm working on a module for using the Puck as an interface: a scroll wheel, e.g. to control volume through BLE HID (works already), and a simple API to control the LEDs, e.g.:

    Lights.pulse().color(Lights.CYAN).when(Button,"press").until(Button,"long");

    This mostly works too, but I'm seeing some strange bugs related to the event emitter that I haven't cracked yet.

About

Avatar for Ron @Ron started