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
| Hello |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width,initial-scale=1"> | |
| <title>Map Viewer</title> | |
| <link rel="stylesheet" href="https://d19vzq90twjlae.cloudfront.net/leaflet-0.7.3/leaflet.css" /> | |
| <!-- reference to Leaflet JavaScript --> | |
| <script src="https://d19vzq90twjlae.cloudfront.net/leaflet-0.7.3/leaflet.js"></script> |
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 <M5Atom.h> | |
| #include "BrownieClient.h" | |
| #define PIN_DOUT 32 | |
| #define PIN_SLK 26 | |
| #define MEDIAN_FILTER_SIZE 10 | |
| static char ssid[64] = "your-ssid"; | |
| static char pass[64] = "your-password"; | |
| static char mqtt[64] = "192.168.xx.xx"; |
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
| # RTSPを受信して .mp4 にエンコード | |
| # ATOM Cam 2 は 20fps が標準 (赤外カメラモードでは15fpsとなるが下記コードは未対応) | |
| import cv2 | |
| import datetime | |
| import os | |
| # 日付をファイル名にする | |
| def get_filename(): | |
| now = datetime.datetime.now() | |
| filename = './mp4/' + now.strftime('%Y%m%d_%H%M') + '.mp4' |
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
| // Pi.txt は https://www.tstcl.jp/ja/randd/pi.php をコピペしたもの | |
| string text = File.ReadAllText("Pi.txt"); | |
| // テキストの改行・空白を除く。1M桁程度ならこの実装でも余裕でしょう。 | |
| text = text.Replace("\r\n", "").Replace(" ", ""); | |
| List<string> buffer = new List<string>(); | |
| // 1M桁程度ならこの実装でも余裕でしょう。 | |
| for(int i = 0; i <= 9999; i++) | |
| { |
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
| /* | |
| * camera.ino - Simple camera example sketch | |
| * Copyright 2018, 2022 Sony Semiconductor Solutions Corporation | |
| * | |
| * This library is free software; you can redistribute it and/or | |
| * modify it under the terms of the GNU Lesser General Public | |
| * License as published by the Free Software Foundation; either | |
| * version 2.1 of the License, or (at your option) any later version. | |
| * | |
| * This library is distributed in the hope that it will be useful, |
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
| <?xml version="1.0" encoding="UTF-8" standalone="yes"?> | |
| <kml xmlns="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:xal="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0"> | |
| <Document> | |
| <Style id="SYMBOL2.symbolStyle"> | |
| <IconStyle> | |
| <Icon> | |
| <href>https://maps.gsi.go.jp/portal/sys/v4/symbols/080.png</href> | |
| </Icon> | |
| <scale>1</scale> | |
| </IconStyle> |
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
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| using System.Reflection; | |
| using System.IO; | |
| namespace HelloAIVOICE |
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 <M5StickCPlus.h> | |
| #define PCA9548AP_I2C_ADDRESS 0x70 | |
| void setup() | |
| { | |
| M5.begin(); | |
| Wire.begin(); | |
| } | |
| uint8_t selectI2CPort(uint8_t channel){ |
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 <M5GFX.h> | |
| #include <M5StickCPlus.h> | |
| #include <M5_BH1750FVI.h> | |
| M5GFX display; | |
| M5_BH1750FVI sensor; | |
| uint16_t lux; | |
| void setup() { |