Skip to content

Instantly share code, notes, and snippets.

@ya-ma-cho
ya-ma-cho / test
Created August 16, 2019 04:10
test
test
#include <M5Stack.h>
#include <WiFi.h>
#include <WiFiClientSecure.h>
WiFiClientSecure client;
//WiFi設定
const char* ssid = "******";
const char* password = "*****";
#include <M5Stack.h>
#include <WiFi.h>
#include <WiFiClient.h>
WiFiClient client;
// WiFi設定
const char* ssid = "*****";
const char* password = "*****";
InnoCAFE36
@ya-ma-cho
ya-ma-cho / innocafe35
Last active April 23, 2018 07:24
innocafe35
We couldn’t find that file to show.
@ya-ma-cho
ya-ma-cho / doi.png
Last active February 23, 2018 10:16
innocafe_images_gist
doi.png
#include <Nefry.h>
#define PIN_INSIDE D2
#define PIN_OUTSIDE D4
int state_inside;
int state_outside;
int state_inside_temp;
int state_outside_temp;
#include <Nefry.h>
#define DELAY_TIME1 3400
#define DELAY_TIME2 460
#define DELAY_TIME3 570
#define DELAY_TIME4 510
#define PIN_MAGNET D2
#define PIN_BUZZER D4
var SLACK_API_TOKEN = PropertiesService.getScriptProperties().getProperty('SLACK_API_TOKEN');
var OUTGOING_TOKEN = PropertiesService.getScriptProperties().getProperty('OUTGOING_TOKEN');
var SPREADSHEET_ID = PropertiesService.getScriptProperties().getProperty('SPREADSHEET_ID');
var RECORD_SHEET_NAME = 'record';
var MEMBER_SHEET_NAME = 'member';
function doPost(e) {
if(OUTGOING_TOKEN == e.parameter.token && e.parameter.trigger_word == 'iine'){