Espruino icon indicating copy to clipboard operation
Espruino copied to clipboard

Espruino by Examples - Espruino is a JavaScript interpreter for microcontrollers.

Espruino by Examples

Examples by variables and functions

  • variable HIGH

    • Reflex Game
  • variable LOW

    • Reflex Game
  • function analogRead(pin)

    • Analog Read
    • Analog Read Voltage
    • Analog Read Watch
    • Arduino Style Analog Read
    • Servo Object
  • function analogWrite(pin, value, options)

    • Analog Pulse
    • Play a Melody For Espruino
    • Text to Morse Audio 1
    • Text to Morse Audio 2
  • function changeInterval(id, time)

    • Analog Read Watch
  • function clearInterval(id)

    • Analog Read Watch
    • Reflex Game
    • Servo Object
  • function clearTimeout(id)

    • Decision Maker
    • Morse Pulse to Letter
  • function clearWatch(id)

    • Reflex Game
    • Toggle Button Object
  • function digitalPulse(pin, value, time)

    • On Board LED Blinker 3
    • Servo Object
  • function digitalRead(pin)

    • Digital Multiple Read
    • Digital Read Example
    • On Board LED Blinker 11
    • On Board LED Blinker 4
  • function digitalWrite(pin, value)

    • Analog Pulse
    • On Board LED Blinker 1
    • On Board LED Blinker 10
    • On Board LED Blinker 11
    • On Board LED Blinker 12
    • On Board LED Blinker 2
    • On Board LED Blinker 4
    • On Board LED Blinker 6
    • On Board LED Blinker 7
    • On Board LED Blinker 8
    • On Board LED Blinker 9
    • Play a Melody For Espruino
    • Text to Morse Audio 1
    • Text to Morse Audio 2
    • Toggle Button Object
  • function getPinMode(pin)

    • List Pins with Modes
  • function getTime()

    • Analog Read Watch
  • function peek8(addr)

    • Memory Hex Dump
  • function print(text, ...)

    • Analog Pulse
    • Analog Read
    • Analog Read Voltage
    • Analog Read Watch
    • Arduino Style Analog Read
    • ASCII Characters List
    • ASCII Characters Table
    • Board Info
    • Digital Multiple Read
    • Digital Read Example
    • Extended Array Object
    • Extended Math Object
    • Extended Array Object
    • List Pins with Modes
    • Memory Hex Dump
    • Memory Leak
    • Morse Pulse to Letter
    • Print Function Test
    • Reflex Game
    • Servo Object
    • Text to Morse Audio 1
    • Text to Morse Audio 2
    • Toggle Button Object
    • XOR String
  • function reset()

    • On Board LED Blinker 5
    • Reflex Game
  • function save()

    • Infinitive Save
  • function setInterval(function, timeout)

    • Analog Read Watch
    • Arduino Style Bare Minimum
    • Memory Leak
    • On Board LED Blinker 1
    • On Board LED Blinker 10
    • On Board LED Blinker 11
    • On Board LED Blinker 12
    • On Board LED Blinker 2
    • On Board LED Blinker 3
    • On Board LED Blinker 4
    • On Board LED Blinker 5
    • On Board LED Blinker 6
    • On Board LED Blinker 7
    • On Board LED Blinker 8
    • On Board LED Blinker 9
    • Reflex Game
    • Servo Object
  • function setTimeout(function, timeout)

    • Analog Pulse
    • Decision Maker
    • Morse Pulse to Letter
    • Play a Melody For Espruino
    • Text to Morse Audio 1
    • Text to Morse Audio 2
  • function setWatch(function, pin, options)

    • Decision Maker
    • Morse Pulse to Letter
    • Reflex Game
    • Toggle Button Object

Bug tracker

Have a bug? Please create an issue here on GitHub!

Twitter account

Keep up to date on announcements and more by following Anar Software LLC on Twitter, @AnarSoft.

Contributing

  1. Fork it.
  2. Create a branch (git checkout -b myEspruino)
  3. Commit your changes (git commit -am "Added New Espruino Sample")
  4. Push to the branch (git push origin myEspruino)
  5. Create an issue with a link to your branch

License

Espruino by Examples < http://git.io/ebe >

Copyright (c) 2014-2021 Anar Software LLC. < http://anars.com >

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details at http://www.gnu.org/licenses/gpl.html