Skip to content

Instantly share code, notes, and snippets.

View AlpesMachines's full-sized avatar

Alpes Machines AlpesMachines

View GitHub Profile
@AlpesMachines
AlpesMachines / mqtt_esp8266wemos.ino
Created July 17, 2021 13:22 — forked from boverby/mqtt_esp8266wemos.ino
mqtt_esp8266wemos - simple mqtt sender and receiver for wemos d1 mini. mac address is part of topic.
/*
Simple wemos D1 mini MQTT example
This sketch demonstrates the capabilities of the pubsub library in combination
with the ESP8266 board/library.
It connects to the provided access point using dhcp, using ssid and pswd
It connects to an MQTT server ( using mqtt_server ) then:
- publishes "connected"+uniqueID to the [root topic] ( using topic )
@AlpesMachines
AlpesMachines / midiKeyboard_VelocityAftertouch.c
Created June 7, 2020 16:35 — forked from codetinkerhack/midiKeyboard_VelocityAftertouch.c
Arduino based Velocity sensitive Midi keyboard with Aftertouch
// Pin Definitions
// Rows are connected to Digital
const int rowPin[] = { 6, 7, 8, 5 };
// FSRs connected to Analog
const int fsrPin[] = { 2, 3, 4, 5 };
// The 74HC595 uses a serial communication
// link which has three pins
const int clock = 12;