This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var async = require('async'); | |
var NobleDevice = require('../index'); | |
// Add my service | |
var idOrLocalName = process.argv[2]; | |
if (!idOrLocalName) { | |
console.log("node battery.js [ID or local name]"); | |
process.exit(1); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "stdio.h" | |
void main(){ | |
printf("Hello World\n\r"); | |
return 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
description[de] = <b>Design Rules for Modela</b>\n<p>\nMinimum drill : 60 deg V-cutter | |
description[en] = <b>Design Rules for Modela</b>\n<p>\nMinimum drill : 60 deg V-cutter | |
layerSetup = (1*16) | |
mtCopper = 0.035mm 0.035mm 0.035mm 0.035mm 0.035mm 0.035mm 0.035mm 0.035mm 0.035mm 0.035mm 0.035mm 0.035mm 0.035mm 0.035mm 0.035mm 0.035mm | |
mtIsolate = 1.5mm 0.15mm 0.2mm 0.15mm 0.2mm 0.15mm 0.2mm 0.15mm 0.2mm 0.15mm 0.2mm 0.15mm 0.2mm 0.15mm 0.2mm | |
mdWireWire = 0.3mm | |
mdWirePad = 0.3mm | |
mdWireVia = 0.3mm | |
mdPadPad = 0.3mm | |
mdPadVia = 0.3mm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <CurieBLE.h> | |
/* */ | |
BLEPeripheral blePeripheral; // BLE Peripheral Device (the board you're programming) | |
int oldBatteryLevel = 0; // last battery level reading from analog input | |
unsigned long previousMillis = 0; // last time the battery level was checked, in ms | |
unsigned long interval = 1; // ms | |
BLEService myService("BF77"); // BLE my Service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import adsk.core, adsk.fusion, traceback | |
import os.path, sys | |
def run(context): | |
ui = None | |
try: | |
app = adsk.core.Application.get() | |
ui = app.userInterface | |
# get active design |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* light RGB LED based on HSV model | |
* This code is derived from "Adafruit Arduino - Lesson 3. RGB LED" | |
* https://learn.adafruit.com/adafruit-arduino-lesson-3-rgb-leds/overview | |
*/ | |
// #define DEBUG | |
int redPin = 11; | |
int greenPin = 10; | |
int bluePin = 9; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* light RGB LED based on HSV model and change color with switch | |
* This code is derived from "Adafruit Arduino - Lesson 3. RGB LED" | |
* https://learn.adafruit.com/adafruit-arduino-lesson-3-rgb-leds/overview | |
*/ | |
// #define DEBUG | |
const int swPin = 2; | |
int redPin = 11; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* MPU9250 Basic Example Code for Dual MPU9250 | |
* Copyright (c) 2014 Kris Winer | |
* Copyright (c) 2018 botamochi6277 | |
* license: Beerware - Use this code however you'd like. If you | |
* find it useful you can buy me a beer some time. | |
*/ | |
#include <M5Stack.h> | |
#include "utility/MPU9250.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @brief Drive brushed DC-motors with TB6612 | |
* @author botamochi6277 | |
*/ | |
#include "ros/ros.h" | |
#include <iostream> | |
#include <chrono> | |
#include <thread> | |
#include <TB6612.hpp> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
M5Stack Fire | |
M5Stack, MPU9250 and ROS Publisher Example Code | |
by: Kris Winer | |
date: April 1, 2014 | |
license: Beerware - Use this code however you'd like. If you | |
find it useful you can buy me a beer some time. | |
Modified by Brent Wilkins July 19, 2016 |
OlderNewer