Skip to content

Instantly share code, notes, and snippets.

@rexhex
rexhex / keybase.md
Created December 10, 2019 08:42
keybase.md

Keybase proof

I hereby claim:

  • I am rexhex on github.
  • I am rexhex (https://keybase.io/rexhex) on keybase.
  • I have a public key ASAdKt3sh5McgxlfTxB6dpuyisgLjuSXBRdPF7CbdpGQSAo

To claim this, I am signing this object:

@rexhex
rexhex / pwmAudioAlert
Created September 3, 2017 08:16
pwm and for loops to create a simple sound
// hook up a speakers positive wire to your pwm pin
// speaker ground goes to ground
// you can add in a potentiometer for volume control
// just put the pwm pin to one end lead of the pot
// the the middle pin on pot goes to the speakers (+)
// define the speaker pin. (pin 4 is D2 on the wemos mini)
#define speaker 4