Skip to content

Instantly share code, notes, and snippets.

Introduction to Arduino

In this lesson we will learn about using Javascript to interact with hardware. We will be using a platform called Node.js which runs Javascript outside of the browser.

What is an Arduino?

Arduino is a tool for making computers that can sense and control more of the physical world than your desktop computer. It's an open-source physical computing platform based on a simple microcontroller board, and a development environment for writing software for the board. arduino.cc

Basic Circuitry

Node.js is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices. nodejs.org

!Arduino

@gylippus
gylippus / Firebase-Ready-GooglePlus.java
Created January 28, 2017 11:55
Example of cordova-plugin-googleplus `GooglePlus.java` that provides `accessToken` for Android
package nl.xservices.plugins;
import android.content.Intent;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.util.Log;
import com.google.android.gms.auth.api.Auth;
import com.google.android.gms.auth.GoogleAuthUtil;
import com.google.android.gms.auth.api.signin.GoogleSignInResult;
<html>
<head>
<title>We want to ask you something</title>
<link rel="shortcut icon" href="/slices/style/favicon.ico" type="image/x-icon"/>
<!-- Headers to prevent the caching of pages -->
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<meta http-equiv="pragma" content="no-cache"/>
<meta http-equiv="cache-control" content="no-store"/>