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 os | |
import sys | |
import subprocess | |
import RPi.GPIO as GPIO # Import Raspberry Pi GPIO library | |
from pocketsphinx import LiveSpeech, get_model_path | |
import sounddevice as sd | |
import time | |
# Function to list | |
print("Available audio devices:") |
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 gpiozero import Servo | |
from time import sleep | |
from gpiozero.pins.pigpio import PiGPIOFactory | |
import sys | |
import time | |
import sys | |
from rpi_ws281x import PixelStrip, Color | |
import os | |
import errno | |
import ast |
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
#!/bin/bash | |
#sleep 10 | |
PROJECT_DIR=/home/asafm/PurimIrisBox | |
cd $PROJECT_DIR | |
python3 --version | |
sudo pigpiod | |
pulseaudio -D | |
date > log.txt | |
date > log1.txt | |
whoami >> log1.txt |
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
// Written by Asaf Matan | |
// GPS code is based on | |
// https://www.hackster.io/SeeedStudio/wio-terminal-gps-ad70e2 Arduino/Wappsto | |
// example | |
#include <Adafruit_VCNL4040.h> | |
#include <SPI.h> | |
#include "TFT_eSPI.h" | |
#include <Seeed_FS.h> | |
#include <SoftwareSerial.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
/*************************************************** | |
This code utilize Freedom Box design based on example by | |
By [Angelo qiao](Angelo.qiao@dfrobot.com) | |
Adaptations and xiao code by Asaf Matan | |
GNU Lesser General Public License. | |
****************************************************/ | |
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
//Code Breaker | |
//Source Michael Klements Arduino Uno code | |
//Converted to ESP32 - Asaf Matan | |
#include <SPI.h> //Import libraries to control the OLED display | |
#include <Wire.h> | |
#include <Adafruit_GFX.h> | |
#include <Adafruit_SSD1306.h> | |
#include <Servo.h> //Import library to control the servo | |
#include "AiEsp32RotaryEncoder.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 numpy as np | |
import cv2 | |
import numpy as np | |
import sys | |
# https://github.com/Itseez/opencv/blob/master/data/haarcascades/haarcascade_frontalface_default.xml | |
face_cascade = cv2.CascadeClassifier('haarcascade_frontalface_default.xml') | |
# https://github.com/Itseez/opencv/blob/master/data/haarcascades/haarcascade_eye.xml | |
eye_cascade = cv2.CascadeClassifier('haarcascade_eye.xml') |