This file contains hidden or 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 <Servo.h> | |
Servo rServo; | |
Servo lServo; | |
// | |
// ADXL345 | |
// | |
#include <Wire.h> |
This file contains hidden or 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 "Adafruit_CCS811.h" | |
#include "Adafruit_Si7021.h" | |
#include "Adafruit_BMP280.h" | |
Adafruit_CCS811 ccs; | |
Adafruit_BMP280 bmp280; | |
Adafruit_Si7021 SI702x = Adafruit_Si7021(); | |
// |
This file contains hidden or 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 <M5Stack.h> | |
HardwareSerial mySerial(2); // RX, TX | |
void setup() { | |
Serial.begin(115200); | |
M5.begin(); | |
M5.Lcd.setTextSize(1); | |
M5.Lcd.setTextColor(WHITE, BLACK); |
This file contains hidden or 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
WiFi.mode(WIFI_STA); | |
sleep_ms(100); | |
WiFi.begin(testSSID, testPassword); | |
int count = 0; | |
int status; | |
while ((status = WiFi.status()) != WL_CONNECTED) { | |
sleep_ms(1000); | |
count++; | |
if (count == 5 || status == WL_NO_SSID_AVAIL) { | |
esp_wifi_restore();//<--- this is important! |
This file contains hidden or 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
// こんな感じでパラメータを設定して | |
// | |
ledc_channel_config_t ledc_channel[LEDC_TEST_CH_NUM] = { | |
{ | |
.channel = LEDC_CHANNEL_0, | |
.duty = 0, | |
.gpio_num = LED_GPIO_Red, | |
.speed_mode = LEDC_HIGH_SPEED_MODE, | |
.timer_sel = LEDC_TIMER_0 | |
}, |
This file contains hidden or 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
// こんな感じでパラメータを設定して | |
// | |
ledc_channel_config_t ledc_channel[LEDC_TEST_CH_NUM] = { | |
{ | |
.channel = LEDC_CHANNEL_0, | |
.duty = 0, | |
.gpio_num = LED_GPIO_Red, | |
.speed_mode = LEDC_HIGH_SPEED_MODE, | |
.timer_sel = LEDC_TIMER_0 | |
}, |
This file contains hidden or 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
// | |
// Sensor | |
#include "Adafruit_CCS811.h" | |
Adafruit_CCS811 ccs; | |
// |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
import io | |
import picamera | |
import sys | |
import time | |
import datetime | |
import numpy as np | |
import cv2 |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
import io | |
import picamera | |
import sys | |
import time | |
import datetime | |
import numpy as np | |
import cv2 |
This file contains hidden or 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
//file length = 128044 | |
//id=RIFF, file size=128036, wave=WAVEfmt, chunkSize=16, formatId=1, | |
//ch=2, samples per sec=16000, bytes per sec=64000, bits per sample=16 | |
//sizeofformat=36, buf=data, id=data, data size=128000 | |
//lines=4000 | |
const int16_t sin [] = { | |
0xce55,0xd94a,0xcc93,0xae87,0x05fc,0xa30a,0x2c68,0x9154,0x55df,0x88a9,0x6d64,0x826f,0x764c,0x81b0,0x6c7a,0x85e5, | |
0x51d6,0x8e69,0x2b3f,0x9bb2,0xfdad,0xac88,0xd0c1,0xc0c2,0xaad5,0xd752,0x91f2,0xef7d,0x89d5,0x0846,0x93b9,0x20bf, | |
0xae04,0x37f6,0xd4ad,0x4d06,0x01dd,0x5f21,0x2ed2,0x6d94,0x54cd,0x77d0,0x6dfd,0x7d72,0x7660,0x7e42,0x6c95,0x7a38, | |
0x5237,0x717b,0x2b6c,0x6462,0xfe1d,0x536d,0xd120,0x3f43,0xab47,0x28ac,0x925a,0x1083,0x8a34,0xf7ba,0x9409,0xdf41, |
NewerOlder