View main.js
This file contains 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
//========== | |
// Howler.jsを利用 | |
// https://howlerjs.com/ | |
const myHowl = new MyHowler(); | |
window.addEventListener("focus", e=>{ | |
console.log("focus"); | |
if(myHowl) myHowl.resumeBGM(); | |
}); |
View main.c
This file contains 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 <stdio.h> | |
/* | |
//========== | |
// How to EMSDK | |
https://emscripten.org/index.html | |
Download and Install | |
https://emscripten.org/docs/getting_started/downloads.html |
View custom_main_1.js
This file contains 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
"use strict"; | |
//========== | |
// Promise基礎_1 | |
// Window | |
window.onload = (e)=>{ | |
// Promises | |
const pr1 = new Promise((resolve, reject)=>{ |
View custom_main.js
This file contains 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
import { myName, myFunc, MyModule } from "./custom_module.js"; | |
$(document).ready(()=>{ | |
console.log("Ready!!"); | |
// Variable | |
console.log(myName); | |
// Function | |
myFunc(); |
View SerialPort.cpp
This file contains 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" | |
using namespace std; | |
unsigned long counter = 0; | |
// Send to browser | |
void sendMsg(const string msg){ | |
Serial.println(msg.c_str()); | |
} |
View BleServer.cpp
This file contains 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 <BLEDevice.h> | |
#include <BLEUtils.h> | |
#include <BLEServer.h> | |
#include <BLE2902.h> | |
#include "M5Atom.h" | |
#define SERVICE_UUID "xxxxx" | |
#define CHARACTERISTIC_UUID "yyyyy" | |
#define DEVICE_NAME "BLE_Controller" |
View BleServer.cpp
This file contains 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 <BLEDevice.h> | |
#include <BLEUtils.h> | |
#include <BLEServer.h> | |
#include <BLE2902.h> | |
#define SERVICE_UUID "xxxxx" | |
#define CHARACTERISTIC_UUID "yyyyy" | |
#define DEVICE_NAME "BLE_Controller" | |
using namespace std; |
View main.py
This file contains 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 | |
""" | |
2つの動画から画像を合成 using Pillow | |
""" | |
import cv2, av, time | |
import numpy as np | |
from PIL import Image |
View main.py
This file contains 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 | |
""" | |
2つの動画から画像を合成 using OpenCV | |
""" | |
import cv2, av, time | |
import numpy as np | |
from PIL import Image |
View main.py
This file contains 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 | |
""" | |
2つの動画から画像を合成 using Pillow | |
""" | |
import cv2, av | |
import numpy as np | |
from PIL import Image |
NewerOlder