This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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 ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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; |