Skip to content

Instantly share code, notes, and snippets.

View HeroDjou's full-sized avatar
🎯
Focusing

Claudio Fernandes HeroDjou

🎯
Focusing
View GitHub Profile
@nortbotics
nortbotics / NewPingSinglePin
Created November 7, 2014 06:14
Running the HC-SR04 with A Single Pin Using NewPing
// ---------------------------------------------------------------------------
// NewPing library sketch that interfaces with all but the SRF06 sensor using
// only one Arduino pin. You can also interface with the SRF06 using one pin
// if you install a 0.1uf capacitor on the trigger and echo pins of the sensor
// then tie the trigger pin to the Arduino pin (doesn't work with Teensy).
// ---------------------------------------------------------------------------
#include <NewPing.h>
#define PING_PIN 12 // Arduino pin tied to both trigger and echo pins on the ultrasonic sensor.
@quagliato
quagliato / select_estados.html
Last active June 6, 2024 23:50
<select> com todos os estados brasileiros
<select id="estado" name="estado">
<option value="AC">Acre</option>
<option value="AL">Alagoas</option>
<option value="AP">Amapá</option>
<option value="AM">Amazonas</option>
<option value="BA">Bahia</option>
<option value="CE">Ceará</option>
<option value="DF">Distrito Federal</option>
<option value="ES">Espírito Santo</option>
<option value="GO">Goiás</option>