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
| // ---------------------------------------------------------- | |
| // M5Stack Nodeモジュール向け赤外線送受信 2018/12/24 @ksasao | |
| // ---------------------------------------------------------- | |
| // ESP32で赤外線学習リモコンを作る | |
| // https://qiita.com/td2sk/items/4c0ef83bcc7e74e5e8d5#%E9%85%8D%E7%B7%9A | |
| // @td2sk さんのコードをM5Stack動作確認向けに変更 | |
| #include <M5Stack.h> | |
| #include "driver/rmt.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
| // ---------------------------------------------------------- | |
| // M5Stack Nodeモジュール向けLED(SK6812)操作 2018/12/24 @ksasao | |
| // ---------------------------------------------------------- | |
| // M5Stack Fire向けの公式のコードを若干修正 | |
| // https://github.com/m5stack/M5Stack/blob/master/examples/Fire/M5StackFire_NeoPixelTest/M5StackFire_NeoPixelTest.ino | |
| #include <M5Stack.h> | |
| #include <Adafruit_NeoPixel.h> | |
| #define M5STACK_NODE_NEO_NUM_LEDS 12 |
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
| // Assets/HoloPlay/Core/Scripts/Capture.cs | |
| namespace HoloPlay | |
| { | |
| ... | |
| public class Capture : MonoBehaviour | |
| { | |
| ... | |
| public void RenderView | |
| { |
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.Drawing; | |
| using System.Windows.Forms; | |
| using Wolfram.NETLink; | |
| namespace WolframForm | |
| { | |
| public partial class Form1 : Form | |
| { |
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
| # based on https://github.com/tensorflow/models/blob/master/research/deeplab/deeplab_demo.ipynb | |
| import os | |
| from io import BytesIO | |
| import tarfile | |
| import tempfile | |
| from six.moves import urllib | |
| from matplotlib import gridspec | |
| from matplotlib import pyplot as plt | |
| import numpy as np |
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
| import sensor, image, lcd, time | |
| import KPU as kpu | |
| lcd.init() | |
| sensor.reset() | |
| sensor.set_pixformat(sensor.RGB565) | |
| sensor.set_framesize(sensor.QVGA) | |
| sensor.set_windowing((224, 224)) | |
| sensor.set_vflip(0) | |
| sensor.set_hmirror(0) | |
| sensor.run(1) |
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
| import lcd | |
| import image | |
| import time | |
| import uos | |
| lcd.init() | |
| lcd.rotation(2) #Rotate the lcd 180deg | |
| try: | |
| img = image.Image("/flash/startup.jpg") |
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
| # M5StickV Mic test | |
| # ref. https://github.com/sipeed/MaixPy_scripts/blob/master/hardware/demo_fft_spectrum.py | |
| import audio | |
| import sys | |
| import lcd | |
| from fpioa_manager import * | |
| from Maix import I2S, GPIO, FFT | |
| lcd.init() | |
| lcd.rotation(2) |
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
| import audio | |
| import gc | |
| import image | |
| import lcd | |
| import sensor | |
| import sys | |
| import time | |
| import uos | |
| import os | |
| import KPU as kpu |
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
| from machine import I2C | |
| import lcd | |
| import time | |
| import sys | |
| BEETLEC_ADDRESS=56 | |
| def motor(left, right): | |
| i2c.writeto_mem(BEETLEC_ADDRESS, 0, bytearray([left])) | |
| i2c.writeto_mem(BEETLEC_ADDRESS, 1, bytearray([right])) |