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 video,time,lcd | |
from Maix import I2S, GPIO | |
from fpioa_manager import * | |
import lcd | |
import uos | |
import sys | |
import pmu | |
import image | |
import audio | |
from machine import I2C |
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
#!/bin/bash | |
if [ "$1" = "" ] | |
then | |
echo "引数にリストファイルを指定してください" | |
exit | |
fi | |
for i in $(cat $1) | |
do |
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します。 | |
//#include <LovyanGFX.hpp> | |
#include <M5Stack.h> | |
// 対応機種をArduino環境で使う場合は、特別な設定は不要です。 | |
static M5Display lcd; // LGFXのインスタンスを作成。 | |
static TFT_eSprite sprite(&lcd); // スプライトを使う場合はLGFX_Spriteのインスタンスを作成。 |
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
// LovyanGFX SPIバスおよび使用パネルの設定を伴う使い方 | |
// ヘッダをincludeします。 | |
#include <LovyanGFX.hpp> | |
// SPI設定用の構造体を用意します。 | |
// 構造体の名称に決まりはありませんが、 | |
// 構造体の各メンバ変数の名前と型は例の通りにしてください。 | |
struct LGFX_Config { |
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
●①Raspberry Pi 4B-2GB micron 32GB with fan | |
Raspberry Pi Diagnostics - version (unknown) | |
Thu Apr 23 20:20:49 2020 | |
Test : SD Card Speed Test | |
Run 1 | |
prepare-file;0;0;19354;37 | |
seq-write;0;0;21779;42 | |
rand-4k-write;0;0;3661;915 |
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 <Arduino.h> | |
#include "FreeRTOS.h" | |
#include "task.h" | |
#include <bsp.h> | |
#include <sysctl.h> | |
#define MP_TASK_PRIORITY 4 | |
#define MP_TASK_STACK_SIZE (32 * 1024) | |
#define MP_TASK_STACK_LEN (MP_TASK_STACK_SIZE / sizeof(StackType_t)) | |
TaskHandle_t mp_main_task_handle0; |
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
// スプライトの最大数調査用サンプル | |
// 使い方 | |
// 下記の変数を変えることにより、使用可能なSpriteの最大数を調べることができます。 | |
// ・MAX_SPRITE 表示したいスプライトの数 | |
// ・sprite_w スプライトの幅 | |
// ・sprite_h スプライトの高さ | |
// ・color_depth スプライトのカラー深度 | |
// ●PSRAMを使う場合 | |
// ・use_psramをtrueにしてください。 |
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> | |
#include <driver/i2s.h> | |
#include "AquesTalkTTS.h" | |
#include "driver/dac.h" | |
#define CONFIG_I2S_BCK_PIN 19 | |
#define CONFIG_I2S_LRCK_PIN 33 | |
#define CONFIG_I2S_DATA_PIN 22 | |
#define CONFIG_I2S_DATA_IN_PIN 23 |
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 <M5StickC.h> | |
#include <WiFi.h> | |
const char ssid[] = "ssid"; | |
const char pass[] = "pass"; | |
void setup() { | |
M5.begin(); | |
M5.Lcd.init(); | |
M5.Lcd.setRotation(3); |
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
#!/bin/bash | |
# XXX.XXX.XXX.XXX is own IP address | |
gst-launch-1.0 -v udpsrc uri=udp://XXX.XXX.XXX.XXX:5555 caps="application/x-rtp,channels=(int)2,format=(string)S16LE,media=(string)audio,payload=(int)96,clock-rate=(int)44100,encoding-name=(string)L24" ! rtpL24depay ! audioconvert ! autoaudiosink sync=false |
OlderNewer