The input/output module contains functions for getting data in and out of the browser. All these sketches expect some additional hardware and steps. Please browse the source files and look at the associated README files.
keyboard
- key: track the state of a key
- keys: track the state of more than one key
- typer: add individual letters to the screen with key events
- cursor: move an element around with the cursor keys
- remote: Send keyboard events to a sketch running on a different device.
playgrounds
- keys: Show key events
espruino
- accel-gyro: use acceleration and gyroscope sensor readings (Puck.js)
- analog input: Read one or more analog inputs (Espruino Pico)
- button: respond to button press (Puck.js)
- drv2605: haptic motor controller (Espruino Pico).
- heart-rate: read pulse sensor (Espruino Bangle).
- led: Control the three on-board LEDs (Puck.js)
- led-pwm-env: Fade an LED in and out using an envelope
- mag: Magnetometer (Puck.js)
- mag-synth: Theremin-style audio using magnetometer (Puck.js)
- temperature: use temperature sensor readings (Puck.js)
playgrounds
- espruino-repl: Run lines of code on an Espruino
- espruino-plot: Plot data
- espruino-drv2605: Haptic motor
- Espruino IDE
gamepad
- button: track the state of a key
midi
- button: work with a MIDI note as a button
arduino
These demos use Web Serial, sending JSON back and forth to an Arduino sketch.
etc
- vibration: Chrome Android vibration
- wled/basic: Control WLED NeoPixel lights
- wled/manual: Manually control WLED NeoPixel lights