Skip to content

Instantly share code, notes, and snippets.

View danieldiasm's full-sized avatar
💭
No guts, no glory!

LeChevalier danieldiasm

💭
No guts, no glory!
  • Qalisar Tech Research (owner and sole employee)
  • Göteborg - Sweden
View GitHub Profile
@manuelbl
manuelbl / README.md
Created August 3, 2019 09:12
ESP32 as Bluetooth Keyboard

ESP32 as Bluetooth Keyboard

With its built-in Bluetooth capabilities, the ESP32 can act as a Bluetooth keyboard. The below code is a minimal example of how to achieve it. It will generate the key strokes for a message whenever a button attached to the ESP32 is pressed.

For the example setup, a momentary button should be connected to pin 2 and to ground. Pin 2 will be configured as an input with pull-up.

In order to receive the message, add the ESP32 as a Bluetooth keyboard of your computer or mobile phone:

  1. Go to your computers/phones settings
  2. Ensure Bluetooth is turned on
# -*- coding: utf-8 -*-
#!/usr/bin/env python3
import sys
# Print iterations progress
def printProgressBar(iteration, total, prefix='Progress', suffix='complete', decimals=1, length=30, fill='█'):
"""
Call in a loop to create terminal progress bar
@params:
iteration - Required : current iteration (Int)
@probonopd
probonopd / tutorial.txt
Created July 7, 2017 21:56
Making Armbian Live Distro Tutorial
Mirrored from https://drive.google.com/file/d/0B9rkZNVvi3bIaks1N2pQWEh3S1k/view
mentioned on https://forum.armbian.com/index.php?/topic/4176-debian-live-boot-with-armbian/
Making Armbian Live Distro Tutorial
Introduction
--------------------------------------------------------------------------
Linux live distros are designed to be able to start a whole operating system from a read-only media, but to behave as if the media was read-write. The example - Debian Live. It can be burned on a CD and you can boot a full featured debian system from it, even without a hard drive. You can edit and save files, the system is writing logs, etc. After a reboot, everything is lost, since all changes are "copyonwrited" in RAM.
@gbaman
gbaman / HowToOTG.md
Last active May 16, 2024 20:10
Simple guide for setting up OTG modes on the Raspberry Pi Zero

Raspberry Pi Zero OTG Mode

Simple guide for setting up OTG modes on the Raspberry Pi Zero - By Andrew Mulholland (gbaman).

The Raspberry Pi Zero (and model A and A+) support USB On The Go, given the processor is connected directly to the USB port, unlike on the B, B+ or Pi 2 B, which goes via a USB hub.
Because of this, if setup to, the Pi can act as a USB slave instead, providing virtual serial (a terminal), virtual ethernet, virtual mass storage device (pendrive) or even other virtual devices like HID, MIDI, or act as a virtual webcam!
It is important to note that, although the model A and A+ can support being a USB slave, they are missing the ID pin (is tied to ground internally) so are unable to dynamically switch between USB master/slave mode. As such, they default to USB master mode. There is no easy way to change this right now.
It is also important to note, that a USB to UART serial adapter is not needed for any of these guides, as may be documented elsewhere across the int

@francis2110
francis2110 / LG infrared codes
Created January 22, 2015 10:01
Lg infrared codes for making your own remote
on-off->20DF10EF
energy->20DFA956
av. mode->20DF0CF3
input->20DFD02F
tv/rad->20DF0FF0
1->20DF8877
2->20DF48B7
3->20DFC837
4->20DF28D7
5->20DFA857