cd ~
wget http://nodejs.org/dist/v6.2.1/node-v6.2.1-linux-armv6l.tar.gz
tar -xzf node-v6.2.1-linux-armv6l.tar.gz
node-v6.2.1-linux-armv6l/bin/node -v
The last command should print v6.2.1.
Now you can copy it to /usr/local
| function arrayDiffSym(arr1, arr2) { | |
| return [ | |
| ...arr1.filter(item => !arr2.includes(item)), | |
| ...arr2.filter(item => !arr1.includes(item)), | |
| ]; | |
| } |
| const rootSchema = { | |
| $schema: "http://json-schema.org/draft-04/schema#", | |
| title: "Person", | |
| description: "A person", | |
| type: "object", | |
| properties: { | |
| name: { | |
| description: "A person's name", | |
| type: "string", | |
| }, |
| # -------------------------------------------------------------------- # | |
| # CircuitPython Analog In detection set RGB to random color example | |
| # -------------------------------------------------------------------- # | |
| import time, board, neopixel, random | |
| from analogio import AnalogIn | |
| analog_in = AnalogIn(board.A1) | |
| led = neopixel.NeoPixel(board.NEOPIXEL, 1, brightness=1) |
| import time | |
| import random | |
| import board | |
| import neopixel | |
| pixels = neopixel.NeoPixel(board.NEOPIXEL, 1, brightness=0.3) | |
| while True: | |
| rgbVar = (random.randint(0, 255), random.randint(0, 255), random.randint(0, 255)) | |
| pixels.fill(rgbVar) |
| """CircuitPython Essentials Digital In Out example""" | |
| import time | |
| import board | |
| from digitalio import DigitalInOut, Direction | |
| # LED setup. | |
| # For QT Py M0. QT Py M0 does not have a D13 LED, so you can connect an external LED instead. | |
| led = DigitalInOut(board.SCK) | |
| led.direction = Direction.OUTPUT |
| # SPDX-FileCopyrightText: 2021 Kattni Rembor for Adafruit Industries | |
| # | |
| # SPDX-License-Identifier: MIT | |
| """ | |
| Blink example for boards with ONLY a NeoPixel LED (e.g. without a built-in red LED). | |
| Includes QT Py and various Trinkeys. | |
| Requires two libraries from the Adafruit CircuitPython Library Bundle. | |
| Download the bundle from circuitpython.org/libraries and copy the |
| /********************************************************************* | |
| This is an example for our Monochrome OLEDs based on SH1107 drivers | |
| This example is for a 128x128 size display using I2C to communicate | |
| Adafruit invests time and resources providing this open source code, | |
| please support Adafruit and open-source hardware by purchasing | |
| products from Adafruit! | |
| Written by Limor Fried/Ladyada for Adafruit Industries. |
| # Import all board pins. | |
| import time | |
| import board | |
| import busio | |
| from adafruit_ht16k33 import matrix | |
| i2c = busio.I2C(board.SCL, board.SDA) | |
| matrix = matrix.MatrixBackpack16x8(i2c) |
| const emojiMap = { | |
| 'cloudy': '☁️', | |
| 'fog': '🌫', | |
| 'lightrain': '🌦', | |
| 'partlyCloudy': '🌤', | |
| 'rain': '🌧', | |
| 'snow': '🌨', | |
| 'sunny': '☀️', | |
| 'thunderstorms': '⛈', | |
| 'wind': '💨' |