- IdentiPi MicroPython example: Read the fingerprint image and draw it onto LCD
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
| CLS | |
| Const LOWER_THRESHOLD = 1E-6 | |
| Const UPPER_BOUND = 1E4 | |
| Const INFINITY = 50 | |
| Const X_CENTER = 100 | |
| Const Y_CENTER = 150 | |
| Const X_SCALE = 50 | |
| Const Y_SCALE = 50 | |
| '------------------------------------------------ |
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
| // ESP8266 Pins | |
| // 4(SDA) --- AMG8833 SDA | |
| // 5(SCL) --- AMG8833 SCL | |
| // 13 --- LED (Anode) via 100ohm | |
| #include <pgmspace.h> | |
| #include <ESP8266WiFi.h> | |
| #include <WiFiClient.h> | |
| #include <ESP8266WebServer.h> | |
| #include <WebSocketsServer.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
| #include <M5StickC.h> | |
| #include <BleKeyboard.h> | |
| BleKeyboard bleKeyboard; | |
| void setup() { | |
| Serial.begin(115200); | |
| Serial.println("Starting ..."); | |
| M5.begin(); |
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
| #!/bin/bash | |
| # Usage: ./honeywell_settmp.sh [-c|-h|-o] [<temp(F)>|schedule] | |
| # Example: ./honeywell_settmp.sh -h 72 # set HEAT: temp=72F | |
| # ./honeywell_settmp.sh -c schedule # set COOL: follow shceduled temp | |
| # ./honeywell_settmp.sh -o # turn system OFF | |
| ######## Settings ######## | |
| LOGIN="YOUR_MAIL_ADDRESS" | |
| PASSWORD="YOUR_PASSWORD" |
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 <ChaCha.h> | |
| #include <SPI.h> // include libraries | |
| #include <LoRa.h> | |
| const long frequency = 923E6; // LoRa Frequency | |
| byte message[64]; | |
| int msg_len = 0; | |
| struct { |
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 <string.h> | |
| #include <dlfcn.h> | |
| #include <err.h> | |
| #include <errno.h> | |
| #include <sys/mman.h> | |
| #define LIB_PATH "libc.so.6" | |
| template <class RET, class... ARGV> | |
| class LibHook { |
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 <M5StickC.h> | |
| #include <WiFi.h> | |
| #include <Time.h> | |
| const char ssid[] = "<YOUR SSID>"; | |
| const char pass[] = "***********"; | |
| #define GPIO_PIN 10 /* JJY擬似信号を出力するピン */ | |
| #define LEDC_BASE_FREQ 60000.0 /* JJY擬似信号の周波数 */ |
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 <WiFi.h> | |
| #include <WebServer.h> | |
| #define OUTPUT_PIN 26 | |
| char ssid[] = "YOUR-WIFI-SSID"; | |
| char pass[] = "YOUR-WIFI-PASSWORD"; | |
| WebServer server(80); | |
| void setup() { |
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 <SoftwareSerial.h> | |
| // Detail: http://d.hatena.ne.jp/NeoCat/20160110/1452407542 | |
| //----------------------------------------------------------- | |
| // Configurations | |
| //----------------------------------------------------------- | |
| // B-route ID and Password (PANA authentication) | |
| #define ID "0000XXXXXXXXXXXXXXXXXXXXXXXXXXXX" |
NewerOlder
