View Arducam_B0176_focus_ctl.py
#!/bin/env python3 | |
""" | |
Focus control for Arducam B0176 "Motorized focus camera for Raspberry Pi" | |
See: TBC | |
Copyright (c) 2021 Kohei MATSUSHITA | |
This software is released under the The 3-Clause BSD License. |
View ATECC608A_shell.py
""" | |
Usage: | |
$ cd Core2-for-AWS-IoT-EduKit/Blinky-Hello-World/ | |
$ curl -O ATECC608A_shell.py | |
$ source ~/esp/esp-idf/export.sh | |
$ PYTHONSTARTUP=ATECC608A_shell.py python | |
""" | |
port = "/dev/ttyUSB0" |
View WioLTE_KeiganMotor_MQTT_ctrl.ino
/* | |
* Copyright (c) 2020 Kohei "Max" MATSUSHITA (ma2shita+git@ma2shita.jp) | |
* Released under the MIT license | |
* https://opensource.org/licenses/mit-license.php | |
*/ | |
#define _VERSION_ "0.992" | |
#define SerialMon SerialUSB |
View lagoon_template_for_ambient_monitor_using_arduino.json
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": "-- Grafana --", | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", | |
"name": "Annotations & Alerts", |
View lagoon_template_for_m5stack_tof_ranger2.json
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": "-- Grafana --", | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", | |
"name": "Annotations & Alerts", |
View m5stack_tof_ranger2.ino
/* | |
* Copyright (c) 2020 SORACOM, INC. | |
* Released under the MIT license | |
* https://opensource.org/licenses/mit-license.php | |
*/ | |
#include <M5Stack.h> | |
#include <HTTPClient.h> // Why? see https://qiita.com/ma2shita/items/97bf1a0c3158b848019a | |
#define SerialMon Serial | |
#define TEXT_SIZE 2 |
View sensor_test.py
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import time | |
# 距離を読む関数 | |
def read_distance(): | |
# 必要なライブラリのインポート・設定 | |
import RPi.GPIO as GPIO | |
# 使用するピンの設定 |
View m5stack_take_a_thing_notifier_edge.ino
/* | |
* "Take a thing" notifier with 3G (All-in the edge) | |
* | |
* Copyright (c) 2020 Kohei MATSUSHITA | |
* Released under the MIT license | |
* https://opensource.org/licenses/mit-license.php | |
*/ | |
#include <M5Stack.h> | |
#define console Serial |
View m5stack_take_a_thing_notifier_cloud.ino
/* | |
* "Take a thing" notifier with 3G (All-in the cloud) | |
* | |
* Copyright (c) 2020 Kohei MATSUSHITA | |
* Released under the MIT license | |
* https://opensource.org/licenses/mit-license.php | |
*/ | |
#include <M5Stack.h> | |
#define console Serial |
View m5stack_tof_ranger.ino
#include <M5Stack.h> | |
#include <HTTPClient.h> /* Why? see https://qiita.com/ma2shita/items/97bf1a0c3158b848019a */ | |
#define console Serial | |
#define TEXT_SIZE 2 | |
//https://www.switch-science.com/catalog/5219/ | |
#define ToF_ADDR 0x29 // the iic address of tof | |
#include <VL53L0X.h> // from Lib. manager: https://github.com/pololu/vl53l0x-arduino/blob/master/examples/Continuous/Continuous.ino | |
VL53L0X tof; |
NewerOlder