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
| #include <Arduino.h> | |
| #include <ESP8266WiFi.h> | |
| #include <WiFiUdp.h> | |
| uint8_t state = 0; | |
| String SSID = "IOT"; | |
| String PSK = "mrfunkfunk"; |
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
| #include <ESP8266WiFi.h> | |
| #include <WiFiUdp.h> | |
| #include <WiFiClient.h> | |
| String SSID = "IOT"; | |
| String PSK = "mrfunkfunk"; | |
| //UDP stuff: | |
| WiFiUDP Udp; | |
| const unsigned int udpPort = 1337; |
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
| #include <Arduino.h> | |
| #include <ESP8266WiFi.h> | |
| #include "wpa2_enterprise.h" | |
| char username[] = "[email protected]"; //skolemail | |
| char password[] = "MyEAPPassword"; | |
| char ssid[] = "eduroam"; //Don't change this. | |
| void setup() |
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
| /* | |
| * This sketch sends data via HTTP GET requests to $host. | |
| * | |
| * Magic numbers are used to determine which line(s) to handle, and which part of this line is used. | |
| * The numbers are determined using curl (or some other http dump program) | |
| */ | |
| #if defined(ESP8266) | |
| #pragma message "ESP8266 stuff happening!" | |
| #include <ESP8266WiFi.h> | |
| #elif defined(ESP32) |
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
| /**************************************************************************/ | |
| /*! | |
| naive brodacast/listener implementation with simple UDP broadcast. | |
| Each device: | |
| -must have a unique ID! (device_ID) | |
| -Connects to wifi and waits for incoming UDP packets. | |
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
| $fn = 32; //establish a decent roundness | |
| length = 75; | |
| height = 30; | |
| width = 40; | |
| bigHoleDiameter = 37.5; | |
| filletRadius = 3; | |
| /* |
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
| #run with python3 | |
| #js scraper code copied from: https://taras.codes/blog/linkedin-organization-follower-count/ ... replaced regex with string.strip | |
| import socket | |
| from pyquery import PyQuery | |
| import string | |
| import time | |
| print(time.ctime(),"startup!") | |
| TCP_IP = '5.79.74.16' #<-insert server IP here. |
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
| import csv | |
| import sys | |
| from bs4 import BeautifulSoup | |
| #Dette script indeholder ikke hemmelige eller personfølsomme oplysninger, men behandler manuelt anskaffede personoplysninger. | |
| #Programmet æder klasselister (uden billeder) genereret via aarhus tech selvbetjeningen. | |
| #Gem den genererede side som PrintPage.html i samme mappe som dette script. | |
| inputFilename = "PrintPage.html" | |
| outputFilename = "_klasseliste_til_adobe_admin_console_upload.csv" |
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
| #include "Keyboard.h" | |
| const int buttonPin = 10; | |
| void setup() { | |
| pinMode(buttonPin, INPUT_PULLUP); | |
| Keyboard.begin(); | |
| } | |
| void loop() { |
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
| //MAX7219 | |
| #include <SPI.h> | |
| #include <Adafruit_GFX.h> | |
| #include <Max72xxPanel.h> | |
| #define stringArraySize 7 | |
| //int pinBatt = A0; | |
| int pinCS = 8; // Attach CS to this pin, DIN to MOSI and CLK to SCK (cf http://arduino.cc/en/Reference/SPI ) | |
| int numberOfHorizontalDisplays = 4; | |
| int numberOfVerticalDisplays = 1; |