Skip to content

Instantly share code, notes, and snippets.

View kawashimaken's full-sized avatar
😃
Focusing

Ken kawashimaken

😃
Focusing
View GitHub Profile
@kawashimaken
kawashimaken / esp32_with_two_st7735s_lovyanGFX.ino
Last active April 26, 2023 04:53
esp32_with_two_st7735s_lovyanGFX
#include <LovyanGFX.hpp>
// ESP32でLovyanGFXを独自設定で利用する場合の設定例
/// 独自の設定を行うクラスを、LGFX_Deviceから派生して作成します。
class LGFXsmall : public lgfx::LGFX_Device {
// 接続するパネルの型にあったインスタンスを用意します。
lgfx::Panel_ST7735S _panel_instance;
// パネルを接続するバスの種類にあったインスタンスを用意します。
@kawashimaken
kawashimaken / user_settings.ino
Created March 18, 2023 04:06
ST7789_lovyanGFX
#include <LovyanGFX.hpp>
// ESP32でLovyanGFXを独自設定で利用する場合の設定例
/// 独自の設定を行うクラスを、LGFX_Deviceから派生して作成します。
class LGFX : public lgfx::LGFX_Device {
/*
クラス名は"LGFX"から別の名前に変更しても構いません。
AUTODETECTと併用する場合は"LGFX"は使用されているため、LGFX以外の名前に変更してください。
/* worked ! */
/*
ftf nodemcu esp8266
https://simple-circuit.com/esp8266-nodemcu-st7789-tft-ips-display/
GND GND
vcc 3V
SCL D5(GPIO14)
SDA D7(GPIO13)
@kawashimaken
kawashimaken / M5StickV_rgb_led_test.py
Last active March 31, 2022 01:30
How to test your M5SticV RGB LED
from modules import ws2812
from fpioa_manager import *
# 6 --> red
# 7 --> white
# 8 --> blue
# 9 --> green
fm.register(6)
class_ws2812 = ws2812(6,130)
r=0
dir = True

●チュートリアル

チューニング賞を受賞さいたディープラーニングの父Hinton教授のビデオが公開!(英語)

メディカルAI専門コース オンライン講義資料(日本語)

@kawashimaken
kawashimaken / flatpath2jsontree.js
Created March 12, 2019 03:56
Convert file path string to json tree
var _ = require('lodash');
var paths = [
'/FolderC/FolderA/FolderQ/ItemA',
'/FolderC/FolderA/Item1',
'/FolderD/FolderF/FolderM/ItemA',
'/FolderD/FolderF/FolderM/ItemB',
'/FolderD/FolderG/ItemD',
'/ItemInRoot'
];
#include <M5Stack.h>
#include <WiFi.h>
#include "ArduinoJson.h"
#include <HTTPClient.h>
//WIFIのID
const char *ssid = "";
//WIFIのパースワード、パスワードのないWIFIはこここのままでも良い
const char *password = "";
//今回ビットコインの値段を取得するためのAPIのURL
@kawashimaken
kawashimaken / esp32_bitcoin_price.ino
Created May 17, 2019 06:26
ESP32からビットコインの価格(日本円)を取得して表示するプログラム
#include <WiFi.h>
#include "ArduinoJson.h"
#include <HTTPClient.h>
//WIFIのID
const char* ssid = "";
//WIFIのパースワード、パスワードのないWIFIはこここのままでも良い
const char* password = "";
//今回ビットコインの値段を取得するためのAPIのURL
const char* apiServer = "https://api.coindesk.com/v1/bpi/currentprice/JPY.json";
from __future__ import absolute_import, division, print_function, unicode_literals
import tensorflow as tf
# MNISTのデータセットを使う
mnist = tf.keras.datasets.mnist
# データセットをロードする
# アンパックして、それぞれtraine_dataとtest_dataに格納
# train_data:60000個、test_data:10000個
(train_data, train_teacher_labels), (test_data, test_teacher_labels) = mnist.load_data()
@kawashimaken
kawashimaken / rPi3-ap-setup.sh
Created March 12, 2018 15:20 — forked from Lewiscowles1986/rPi3-ap-setup.sh
Raspberry Pi 3 access-point-setup
#!/bin/bash
#
# This version uses September 2017 august stretch image, please use this image
#
if [ "$EUID" -ne 0 ]
then echo "Must be root"
exit
fi