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
// Modified from https://github.com/felis/USB_Host_Shield_2.0/blob/master/examples/HID/USBHIDBootKbd/USBHIDBootKbd.ino | |
// Modified to print the ASCII hex codes of the keys pressed, and to handle some of the non-printable keys. | |
#include <hidboot.h> | |
#include <usbhub.h> | |
// Satisfy IDE, which only needs to see the include statment in the ino. | |
#ifdef dobogusinclude | |
#include <spi4teensy3.h> | |
#endif |
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 python3 | |
from mvnc import mvncapi as mvnc | |
import sys | |
import numpy | |
import cv2 | |
path_to_networks = './' | |
path_to_images = '../../data/images/' | |
graph_filename = 'graph' | |
#image_filename = path_to_images + 'cat.jpg' |
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 | |
""" | |
animatronic_mouth.py | |
This script animates a motorized mouth on a Raspberry Pi GPIO pin so that it | |
appears to be speaking alongside the audio on the specified PulseAudio source | |
(which usually should be a sink's monitor). | |
Find PA_SOURCE with `pactl list` and look for a monitor device that corresponds |
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 <IOXhop_FirebaseESP32.h> | |
// Set these to run example. | |
#define WIFI_SSID "xxxxxxxx" | |
#define WIFI_PASSWORD "xxxxxxxx" | |
#define FIREBASE_DB_URL "home-messenger-xxxxx.firebaseio.com" | |
#define FIREBASE_DB_DATA_PATH "/messages" | |
#define FIREBASE_DB_DATA_KEY "/mobile1ToHome" | |
#include <ESP32_SD_ShinonomeFNT.h> | |
#include <ESP32_SD_UTF8toSJIS.h> |
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
# M5StickVの電源管理方法 | |
# https://github.com/sipeed/MaixPy/blob/master/components/boards/m5stick/src/m5stick.c | |
# https://github.com/sipeed/MaixPy/blob/master/projects/maixpy_m5stickv/builtin_py/pmu.py | |
# https://pdf1.alldatasheet.com/datasheet-pdf/view/757469/ETC2/AXP192.html | |
# 参考: M5StickC https://github.com/m5stack/M5StickC/blob/master/src/AXP192.cpp | |
import lcd | |
import pmu |
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 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 |
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 <wiring_private.h> | |
static Uart Serial3(&sercom3, PIN_WIRE_SCL, PIN_WIRE_SDA, SERCOM_RX_PAD_1, UART_TX_PAD_0); | |
void setup() { | |
Serial.begin(115200); | |
while(!Serial); | |
Serial3.begin(115200); | |
pinPeripheral(PIN_WIRE_SCL, PIO_SERCOM_ALT); |
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 <M5Core2.h> | |
#include <WiFi.h> | |
const char* SSID = "SSID"; | |
const char* PASSWORD = "SSID Password"; | |
const char* NTP_SERVER = "ntp.jst.mfeed.ad.jp"; | |
const char* TZ = "JST-9"; | |
const uint8_t FONT_NUMBER = 2; // 16px ASCII Font | |
const uint8_t FONT_SIZE = 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
#include <Arduino.h> | |
#ifdef ARDUINO_M5STACK_Core2 | |
#include <M5Core2.h> | |
#elif defined(ARDUINO_M5STACK_FIRE) || defined(ARDUINO_M5Stack_Core_ESP32) | |
#include <M5Stack.h> | |
#endif | |
#define LGFX_AUTODETECT | |
#include <LovyanGFX.hpp> | |
#include <esp_now.h> | |
#include <WiFi.h> |
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 urequests | |
import time | |
import wifiCfg | |
from m5stack import lv, rtc | |
wifiCfg.auto_connect() | |
ticks_ms = 0 | |
old_tick = 0 |
OlderNewer