Skip to content

Instantly share code, notes, and snippets.

View vettorazi's full-sized avatar
🎯
vettor.xyz

Vettorazi vettorazi

🎯
vettor.xyz
View GitHub Profile
@vettorazi
vettorazi / index.html
Created May 20, 2018 19:38 — forked from dugdaniels/index.html
An example of a browser-based input for Johnny-Five. Clicking the button in index.html turns on and off an LED installed on the Arduino board.
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script src="/socket.io/socket.io.js"></script>
<script>
$(document).ready(function() {
var socket = io.connect('http://localhost');
$('#button').click(function(e){
socket.emit('click');
e.preventDefault();