Skip to content

Instantly share code, notes, and snippets.

View hidenba's full-sized avatar
🏠
Working from home

hidekuni KAJITA hidenba

🏠
Working from home
View GitHub Profile
const int pin_a = 10;
const int pin_b = 12;
const int pin_c = 9;
const int pin_d = 4;
const int pin_e = 5;
const int pin_f = 8;
const int pin_g = 11;
const int pin_dp = 13;
const int dig1 = 2;
const int dig2 = 3;
#include <CurieBLE.h>
const int ledPin = 13; // set ledPin to use on-board LED
BLEPeripheral blePeripheral; // create peripheral instance
BLEService alcoholService("29B10000-E8F2-537E-4F6C-D104768A1214"); // create service
BLEShortCharacteristic alcoholChar("29B10001-E8F2-537E-4F6C-D104768A1214", BLERead | BLEWrite | BLENotify);
const int termLedPin = 13;
const int alcoholSensorPin = 0;
@hidenba
hidenba / analogin.c
Created July 18, 2016 22:24
ArduinoのanalogINをBLEで使う
#include <CurieBLE.h>
const int ledPin = 13; // set ledPin to use on-board LED
BLEPeripheral blePeripheral; // create peripheral instance
BLEService alcoholService("29B10000-E8F2-537E-4F6C-D104768A1214"); // create service
BLEShortCharacteristic alcoholChar("29B10001-E8F2-537E-4F6C-D104768A1214", BLERead | BLEWrite | BLENotify);
const int termLedPin = 13;
const int alcoholSensorPin = 0;