Skip to content

Instantly share code, notes, and snippets.

@nomolk
nomolk / M5Stack_FirebaseNihongoDisplay.ino
Last active February 10, 2020 21:03
Display Japanese text from firebase on M5Stack.
#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>
@aarmea
aarmea / animatronic_mouth.py
Last active July 20, 2023 23:46
Open and close an animatronic mouth on a Raspberry Pi GPIO pin
#!/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
@PonDad
PonDad / app.py
Created November 11, 2017 10:36
【Movidius™NCS&RaspberryPi】リアルタイム物体認識【TensorFlow】
#! /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'
@davidbkemp
davidbkemp / gist:1602e1efd2ab7a6188c7
Created January 11, 2015 07:59
Modified Arduino USB Host Shield Keyboard Example
// 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