Instantly share code, notes, and snippets.

View tello-accelerometer-control.ino
#include <Wire.h>
#include <SPI.h>
#include <SparkFunLSM9DS1.h>
#include <WiFi.h>
#include <WiFiUdp.h>
// Use the LSM9DS1 class to create an object.
LSM9DS1 imu;
// SDO_XM and SDO_G are both pulled high, so our addresses are:
View esp32-ble-uart.ino
Based on Neil Kolban example for IDF:
Ported to Arduino ESP32 by Evandro Copercini
Create a BLE server that, once we receive a connection, will send periodic notifications.
The service advertises itself as: 6E400001-B5A3-F393-E0A9-E50E24DCCA9E
Has a characteristic of: 6E400002-B5A3-F393-E0A9-E50E24DCCA9E - used for receiving data with "WRITE"
Has a characteristic of: 6E400003-B5A3-F393-E0A9-E50E24DCCA9E - used to send data with "NOTIFY"
View tello-udp.ino
#include <WiFi.h>
#include <WiFiUdp.h>
// WiFi network name and password:
const char * networkName = "TELLO-C569FC";
const char * networkPswd = "";
//IP address to send UDP data to:
// either use the ip address of the server or
// a network broadcast address
View index.js
'use strict';
const line = require('@line/bot-sdk');
const express = require('express');
const config = require('./config.json');
// create LINE SDK client
const client = new line.Client(config);
const app = express();
View wifimanager-esp32.ino
#include <FS.h> // this needs to be first, or it all crashes and burns...
#include <WiFiManager.h> //
#include <ArduinoJson.h> //
#ifdef ESP32
#include <SPIFFS.h>
//define your default values here, if there are different values in config.json, they are overwritten.
char mqtt_server[40];
View line-simple-beacon.ino
#include "bt.h"
#include "esp_gap_ble_api.h"
static const uint8_t HWID[5] = {0x12, 0x34, 0x56, 0x78, 0x90};// LINEから払い出されたhw idを2桁区切りにして0x__の部分に入れる
static const uint16_t UUID_FOR_LINECORP = 0xFE6F;
View ntp-clock-ledmetrix.ino
#include <NTPClient.h>
#include <ESP8266WiFi.h>
#include <WiFiUdp.h>
#include <string.h>
#include <SPI.h>
#include <bitBangedSPI.h>
#include <MAX7219_Dot_Matrix.h>
const byte chips = 4;
const char *ssid = "redlinesoft";
View dht-magellan.ino
#include <DHT.h>;
#include "Magellan.h"
#define DHTTYPE DHT22
#define DHTPIN 7
Magellan magel;
//Token Key you can get from magellan platform
char auth[]="your-token-id";
View ais-nbiot-example.ino
#include "AIS_NB_BC95.h"
String apnName = "devkit.nb";
String serverIP = ""; // Your Server IP
String serverPort = ""; // Your Server Port
String udpData = "HelloWorld";
sudo touch /lib/systemd/system/launch-assistant.service
echo -e "[Unit]
Description=Google Assistant Demo App