This file contains 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
version: '3' | |
services: | |
vaultwarden: | |
image: vaultwarden/server:1.30.5-alpine | |
container_name: vaultwarden | |
restart: always | |
ports: | |
- 3000:80 | |
environment: | |
- WEBSOCKET_ENABLED=true |
This file contains 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
#include <ESP8266WiFi.h> | |
char ssid[] = "your ssid"; | |
char pass[] = "your pass"; | |
//***************************************************** | |
#define DIR_PIN D0 | |
#define STEP_PIN D3 | |
#define ENABLE_PIN D4 | |
#define DISABLE HIGH |
This file contains 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
// ////////////////////////////////////////////////////////////////////////// | |
// this sketch reads out three sensors and sends their values over OSC | |
// it also accepts an incoming message to activate the relay | |
// ////////////////////////////////////////////////////////////////////////// | |
#include <Arduino.h> | |
#include <easywifi.h> | |
#include <WiFiUdp.h> | |
#include <OSCMessage.h> |
This file contains 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
#include <Arduino.h> // we only need this if we are in PlatformIO | |
void setup() { | |
// initialize serial communication | |
// over the USB wire back to our computer | |
Serial.begin( 9600 ); | |
while(!Serial) ; | |
// define which pins in our sketch | |
// will be used as inputs and which as outputs |
This file contains 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
// ////////////////////////////////////////////////////////////////////////// | |
// this sketch reads out three sensors and sends out the reading of all three | |
// as OSC messages | |
// ////////////////////////////////////////////////////////////////////////// | |
#include <Arduino.h> | |
#include <easywifi.h> | |
#include <WiFiUdp.h> | |
#include <OSCMessage.h> | |
// wifi credentials |
This file contains 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
// ////////////////////////////////////////////////////////////////////////// | |
// this sketch reads out three sensors and sends out the reading of the first | |
// as an OSC message, as an exercise complete this sketch by sending out the | |
// readings of all three sensors, not just one. | |
// ////////////////////////////////////////////////////////////////////////// | |
#include <Arduino.h> | |
#include <easywifi.h> | |
#include <WiFiUdp.h> | |
#include <OSCMessage.h> |
This file contains 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
Sonic the hedgehog | |
Standing | |
R or L pressed -> Running | |
15 seconds passed -> Tap foot | |
Down button pressed -> Ducking | |
Jump button presseed -> Jumping in place | |
Press pause button -> Pause | |
Running | |
Buttons released -> Standing | |
Jump button pressed -> Jumping long |
This file contains 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
#ifndef __WIFI_H__ | |
#define __WIFI_H__ | |
#include <DNSServer.h> | |
#include <ESP8266mDNS.h> | |
enum WifiMode { | |
CLIENT = 10, // station node | |
HYBRID_AP = 15, // station + ap | |
ACCESS_POINT = 20, // ap only |
This file contains 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
#if defined(ARDUINO_ARCH_ESP32) | |
#include <WiFi.h> | |
#else | |
#include <ESP8266WiFi.h> | |
#endif | |
#include <Arduino.h> | |
#include <WiFiUdp.h> | |
#include <ArtnetWifi.h> | |
#include <FastLED.h> |
This file contains 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
Sonic | |
Standing | |
A button pressed -> Running | |
15 seconds passed -> Tap foot | |
Running | |
Buttons released -> Standing | |
Tap foot | |
A button pressed -> Running |
NewerOlder