Skip to content

Instantly share code, notes, and snippets.

@nomissbowling
nomissbowling / boot.py
Created April 2, 2022 05:09 — forked from ksasao/boot.py
M5StickV で UART 文字列受信サンプル。uart.any() で受信バッファの状態を確認して readline() で読むのが簡単。https://twitter.com/ksasao/status/1239058196334923776
import lcd
import image
import time
import uos
lcd.init()
lcd.rotation(2) #Rotate the lcd 180deg
from Maix import I2S, GPIO
from Maix import GPIO
@nomissbowling
nomissbowling / MultiVibrator.md
Created April 1, 2022 08:03
MultiVibrator.md

MultiVibrator

File - Import From Text ...

$ 1 0.000005 109.66331584284586 46 5 43 5e-11
@nomissbowling
nomissbowling / RelaxationOscillation.md
Created April 1, 2022 07:59
RelaxationOscillation.md

RelaxationOscillation

File - Import From Text ...

$ 1 0.000005 32.755850052045055 58 5 43 5e-11
@nomissbowling
nomissbowling / m5stickv_camera_jpg_test.py
Created March 26, 2022 08:26 — forked from mongonta0716/m5stickv_camera_jpg_test.py
M5StickVで撮影したVGAの画像をLCDに縮小表示しつつファイル保存する。(Maixpyファームウェアv0.6.2)
# Untitled - By: mongonta - 金 4月 23 2021
from Maix import GPIO
from fpioa_manager import *
from board import board_info
import os, lcd, image, time, sensor
#####################################################################
# Settings for M5StickV. Maix series should fix the following lines.
lcd.init(type=3)
fm.register(board_info.BUTTON_A, fm.fpioa.GPIO1, force=True)
@nomissbowling
nomissbowling / boot.py
Created March 24, 2022 04:54 — forked from ksasao/boot.py
MaixPy 0.5.0_9 で利用できるようになったNumPy相当の機能のテスト。2つの768次元ベクトルの距離の二乗を計算。ファームウェア http://dl.sipeed.com/MAIX/MaixPy/release/master/maixpy_v0.5.0_9_g8eba07d マニュアル https://micropython-ulab.readthedocs.io/en/latest/ulab.html
import ulab as np
import random
import time
# 初期化
clock = time.clock()
a = []
b = []
for i in range(768):
a.append(random.random())
@nomissbowling
nomissbowling / neopixel-m5stickc.ino
Created March 10, 2022 06:05 — forked from kurosuke/neopixel-m5stickc.ino
neopixel sample for M5stickC
// Simple demonstration on using an input device to trigger changes on your
// NeoPixels. Wire a momentary push button to connect from ground to a
// digital IO pin. When the button is pressed it will change to a new pixel
// animation. Initial state has all pixels off -- press the button once to
// start the first animation. As written, the button does not interrupt an
// animation in-progress, it works only when idle.
#include <Adafruit_NeoPixel.h>
#ifdef __AVR__
#include <avr/power.h> // Required for 16 MHz Adafruit Trinket
@nomissbowling
nomissbowling / printer_3D.md
Last active March 9, 2022 06:16
printer_3D.md