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
from keras.models import load_model | |
from tkinter import * | |
import tkinter as tk | |
from win32 import win32gui | |
from PIL import ImageGrab, Image | |
import numpy as np | |
model = load_model('mnist.h5') | |
def predict_digit(img): |
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
#include <SPI.h> | |
#include <EtherCard.h> | |
#include <MFRC522.h> | |
#include <Keypad.h> | |
// Network configuration | |
static byte mymac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; | |
static byte myip[] = {192, 168, 137, 177}; | |
static byte gwip[] = {192, 168, 137, 1}; | |
static byte netmask[] = {255, 255, 255, 0}; |
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
#include <SPI.h> | |
#include <Ethernet2.h> | |
// Network configuration | |
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; | |
IPAddress ip(192, 168, 137, 100); | |
IPAddress gateway(192, 168, 137, 1); | |
IPAddress subnet(255, 255, 255, 0); | |
EthernetServer server(80); // HTTP port |
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
// Libraries for WiFi, Secure Client, and Camera functionalities | |
#include <Arduino.h> | |
#include <WiFi.h> | |
#include <WiFiClientSecure.h> | |
#include "soc/soc.h" | |
#include "soc/rtc_cntl_reg.h" | |
#include "esp_camera.h" | |
/* I2C and OLED Display Includes ------------------------------------------- */ | |
#include <Wire.h> |
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
int ledPins[] = {2, 3, 4, 5, 6}; // Thumb, Index, Middle, Ring, Pinky | |
void setup() { | |
Serial.begin(9600); | |
for (int i = 0; i < 5; i++) { | |
pinMode(ledPins[i], OUTPUT); | |
} | |
} | |
void loop() { |
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
#include <Adafruit_Fingerprint.h> | |
#define FINGERPRINT_TX 2 | |
#define FINGERPRINT_RX 3 | |
#define ROCKER_SWITCH_ENROLL 8 | |
#define ROCKER_SWITCH_CLEAR 11 | |
#define LED_RED 9 | |
#define LED_GREEN 10 | |
// Additional LEDs for fingerprint ID indication |
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
#include <Wire.h> | |
#include <Adafruit_AMG88xx.h> | |
#include <SPI.h> | |
#include "Ucglib.h" | |
// Create an instance of the thermal camera | |
Adafruit_AMG88xx amg; | |
// Create an instance of the TFT display | |
Ucglib_ILI9341_18x240x320_SWSPI ucg(/*sclk=*/ 4, /*data=*/ 3, /*cd=*/ 6, /*cs=*/ 7, /*reset=*/ 5); |
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
#include <Wire.h> | |
#include <Adafruit_AMG88xx.h> | |
#include <TM1637Display.h> | |
// Define pins for TM1637 module | |
#define CLK D5 | |
#define DIO D6 | |
Adafruit_AMG88xx amg; | |
TM1637Display display(CLK, DIO); |
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
#include <Adafruit_GFX.h> //OLED libraries | |
#include <Adafruit_SSD1306.h> //OLED libraries | |
#include "MAX30105.h" //MAX3010x library | |
#include "heartRate.h" //Heart rate calculating algorithm | |
//////////////////////////// | |
//#include "ESP32Servo.h" | |
///////////////////////////// | |
MAX30105 particleSensor; | |
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
#include <Wire.h> | |
#include <TM1637Display.h> | |
#include <Keypad.h> | |
#include <esp_now.h> | |
#include <WiFi.h> | |
// TM1637 Setup | |
#define CLK 4 | |
#define DIO 5 | |
TM1637Display tm1637(CLK, DIO); |
NewerOlder