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"LIS3DHTR.h" | |
LIS3DHTR<TwoWire> lis(I2C_MODE); | |
void setup() { | |
Serial.begin(115200); | |
lis.begin(Wire1, LIS3DHTR_DEFAULT_ADDRESS); //I2C Address | |
if (!lis) { | |
Serial.println("ERROR"); | |
while (1); |
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
Test Code | |
------ | |
import wifiCfg | |
import urequests | |
import gc | |
import micropython | |
micropython.mem_info() | |
print('Initial free: {} allocated: {}'.format(gc.mem_free(), gc.mem_alloc())) | |
wifiCfg.autoConnect() |
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
# https://github.com/sipeed/MaixPy_scripts/blob/master/multimedia/speech_recognizer/speech_recognizer.py | |
from Maix import I2S, GPIO | |
from fpioa_manager import fm | |
from modules import SpeechRecognizer | |
import utime, time | |
# register i2s(i2s0) pin | |
fm.register(20, fm.fpioa.I2S0_IN_D0, force=True) | |
fm.register(18, fm.fpioa.I2S0_SCLK, force=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
from Maix import GPIO, I2S, FFT | |
import image, lcd, math,array | |
from board import board_info | |
from fpioa_manager import fm | |
import audio | |
sample_rate = 44100 | |
SAMPLES_PER_SECOND = 1024 | |
BITS_PER_SAMPLE=16 |
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
# Name Version Build Channel | |
_libgcc_mutex 0.1 main | |
_tflow_select 2.3.0 mkl | |
absl-py 0.8.0 py36_0 | |
astor 0.8.0 py36_0 | |
blas 1.0 mkl | |
c-ares 1.15.0 h7b6447c_1001 | |
ca-certificates 2019.8.28 0 | |
cairo 1.14.12 h8948797_3 | |
certifi 2019.9.11 py36_0 |
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
// Copyright (c) 2019 aNoken | |
#include <M5StickC.h> | |
HardwareSerial serial_ext(2); | |
typedef struct { | |
uint32_t length; | |
uint8_t *buf; | |
} jpeg_data_t; | |
jpeg_data_t jpeg_data; |
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
#! /usr/bin/env python | |
#from __future__ import print_function | |
# | |
#https://mlblr.com/includes/mlai/index.html#yolov2 | |
#https://github.com/snakers4/yolov2-fish | |
from keras.models import Sequential, Model | |
from keras.layers import Reshape, Activation, Conv2D, Input, MaxPooling2D, BatchNormalization, Flatten, Dense, Lambda | |
from keras.layers.advanced_activations import LeakyReLU | |
from keras.callbacks import EarlyStopping, ModelCheckpoint, TensorBoard |
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 "driver/spi_master.h" | |
#include "driver/spi_slave.h" | |
#include <Arduino.h> | |
#include <SPI.h> | |
// 通信サイズ | |
static const uint32_t TRANS_SIZE = 128; | |
// 通信バッファ | |
uint8_t* spi_slave_tx_buf; |
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 <Wire.h> | |
#include <SPI.h> | |
HardwareSerial serial_ext(2); | |
void setup() { | |
Serial.begin(115200); | |
serial_ext.begin(115200, SERIAL_8N1, 1, 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
## Copyright (c) 2019 aNoken | |
import image, lcd, sensor,gc | |
import KPU as kpu | |
lcd.init() | |
lcd.rotation(2) | |
sensor.reset() | |
sensor.set_pixformat(sensor.RGB565) | |
sensor.set_framesize(sensor.QVGA) |
NewerOlder