Instantly share code, notes, and snippets.

import serial, webbrowser
with serial.Serial('/dev/ttyUSB0', 115200) as s:
while True:
line = s.readline()
View ESP32-Touch.ino
// Touch pin cutoff value
#define CUTOFF 20
// Amount of time held before touch fires event (ms)
#define DURATION 100
// Touch state (0=none, 1=touched+waiting, 2=touched+sent)
int state;
int start;
View LoraDemo.js
This is an example of using Espruino JS to control a REYAX LoRa module.
It listens for "on" and "off" messages to change and LED and
sends "on" and "off" messages by pressing the button.
Watch the video here:
const RYLR = require('');
View EspruinoWebSockets.js
Example of using WebSockets on an Espruino WiFi device for bidirectional communication.
Fill in the WiFi SSID and password to connect to your local network and then the Espruino
console will print out the IP address of your device which you can connect to with a web
Video here:
import pycom
import socket
html = b'''<!DOCTYPE html>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Change Color</title>
View BLE_Scan.ino
#include <BLEAdvertisedDevice.h>
#include <BLEDevice.h>
#include <BLEScan.h>
const int PIN = 2;
const int CUTOFF = -60;
void setup() {
pinMode(PIN, OUTPUT);
View SerialProxy.ino
void setup() {
void loop() {
byte b;
if (Serial1.available() > 0) {
b =;
View hookah-example.go
package main
import (
View tor-ed25519.go
// Example of generating Tor onion using the new ED25519-v3 format
package main
import (