Skip to content

Instantly share code, notes, and snippets.

View romatou18's full-sized avatar

rsacchettini romatou18

View GitHub Profile
@esynr3z
esynr3z / e73-tbm-01_sch.md
Last active May 25, 2021 11:14
Test board E73-TBM-01

Can't find EBYTE test board E73-TBM-01 V1.0 schematic, so figured out connections by myself:

NRF52832 E73-2G4M04S1B Connected to
P0.05 21 CH340G CTS
P0.06 22 CH340G RX
P0.07 23 CH340G RTS
P0.08 24 CH340G TX
P0.13 29 SW2 (act. low)
P0.14 30 SW1 (act. low)
@shaielc
shaielc / HardwareSerial.cpp
Last active December 20, 2021 13:50
interrupt extension for UART
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <inttypes.h>
#include "HardwareSerial.h"
HardwareSerial Serial(0);
HardwareSerial::HardwareSerial(int uart_nr) : _uart_nr(uart_nr), _uart(NULL) {}
void HardwareSerial::setInterrupt(void(*arg)() )
@electronut
electronut / bluey-beacon-3.py
Created July 9, 2017 06:11
bluey-beacon - parse sensor data
# constant
pow_16 = 65536.0
# decode temperature
def decodeT(temp_val):
return ((temp_val / pow_16) * 165 - 40)
# decode humidity
def decodeH(humid_val):
return ((humid_val / pow_16) * 100)
@electronut
electronut / ldr.py
Created May 4, 2014 06:14
Display analog data from Arduino using Python (matplotlib animation)
"""
ldr.py
Display analog data from Arduino using Python (matplotlib)
Author: Mahesh Venkitachalam
Website: electronut.in
"""
import sys, serial, argparse