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> | |
//This Example is drawString Crash ToubleShooting | |
TFT_eSprite *Spr; | |
void setup() { | |
M5.begin(); | |
Spr = new TFT_eSprite(&M5.Lcd); | |
Spr->setColorDepth(8); | |
Spr->createSprite(320, 240); | |
Spr->setBitmapColor(TFT_WHITE, TFT_BLACK); |
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
# @anoken2017 | |
# demo_face_recognition m5-custom firm needed | |
# fork https://github.com/sipeed/MaixPy_scripts/blob/master/machine_vision/demo_face_recognition.py | |
import sensor,image,lcd #関連ライブラリ | |
import KPU as kpu | |
import time | |
from Maix import FPIOA,GPIO,utils | |
from fpioa_manager import fm | |
from board import board_info |
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
##(C)2019 aNoken | |
## button a is learning | |
## button b is switch 0 or 1 | |
## 0 is small size position | |
## 1 is large size position | |
import image, lcd, sensor,gc | |
import KPU as kpu | |
from fpioa_manager import fm,board_info | |
from Maix import GPIO |
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 keras.models import Sequential | |
from keras.layers import Activation, Dense, Dropout,Conv2D,MaxPooling2D,Flatten,ZeroPadding2D | |
from keras.utils.np_utils import to_categorical | |
from keras.optimizers import Adagrad | |
from keras.optimizers import Adam | |
import numpy as np | |
from PIL import Image | |
import os | |
import tensorflow as tf | |
from matplotlib import pyplot as plt |
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
## @anoken | |
## MaixPy Thread Test | |
## MicroPython v0.4.0-50-gcafae9d | |
import lcd | |
from Maix import GPIO | |
from fpioa_manager import fm | |
import _thread, time | |
lcd.init() |
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 | |
// https://anoken.jimdo.com/ | |
// https://github.com/anoken/purin_wo_motto_mimamoru_gijutsu | |
// Arduino IDE compile code | |
#include <M5StickC.h> | |
int button_a = 0; | |
int button_b = 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
from keras.models import Sequential | |
from keras.layers import Activation, Dense, Dropout,Conv2D,MaxPooling2D,Flatten,ZeroPadding2D | |
from keras.utils.np_utils import to_categorical | |
from keras.optimizers import Adagrad | |
from keras.optimizers import Adam | |
import numpy as np | |
from PIL import Image | |
import os | |
from sklearn.model_selection import train_test_split | |
import tensorflow as tf |
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 machine import I2C | |
i2c = I2C(I2C.I2C0, freq=100000, scl=28, sda=29) | |
devices = i2c.scan() | |
print(devices) | |
import lcd #for test | |
AXP192_ADDR=0x34 | |
Backlight_ADDR=0x91 | |
level=50 | |
val = (level+7) << 4 |
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 machine import I2C | |
i2c = I2C(I2C.I2C0, freq=100000, scl=28, sda=29) | |
devices = i2c.scan() | |
print(devices) | |
import sensor, image, time,lcd,machine | |
from machine import I2C | |
MPU6886_ADDRESS=0x68 | |
MPU6886_WHOAMI=0x75 |
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 keras.models import Sequential | |
from keras.layers import Activation, Dense, Dropout,Conv2D,MaxPooling2D,Flatten | |
from keras.utils.np_utils import to_categorical | |
from keras.optimizers import Adagrad | |
from keras.optimizers import Adam | |
import numpy as np | |
from PIL import Image | |
import os | |
from sklearn.model_selection import train_test_split |