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 | |
from Maix import I2S, GPIO | |
from Maix import GPIO |
File - Import From Text ...
$ 1 0.000005 109.66331584284586 46 5 43 5e-11
File - Import From Text ...
$ 1 0.000005 32.755850052045055 58 5 43 5e-11
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
# 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) |
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 ulab as np | |
import random | |
import time | |
# 初期化 | |
clock = time.clock() | |
a = [] | |
b = [] | |
for i in range(768): | |
a.append(random.random()) |
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
// 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 |