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
import uasyncio as asyncio | |
import aioble | |
import bluetooth | |
from micropython import const | |
import time | |
import struct | |
print("All aboard") |
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 <FastLED.h> | |
//Hversu mörg led í led strippinu | |
#define NUM_LEDS 60 | |
#define DATA_PIN 13 | |
#define STATIC_LED 12 | |
#define BLINK_LED 11 |
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
import os | |
import json | |
import time | |
import ipaddress | |
from analogio import AnalogIn | |
import wifi | |
import socketpool | |
import busio | |
import board |
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
#! /usr/bin/python3 | |
import json | |
# This is not a beutiful piece of code, however it works. | |
# If you have an elasticsearch index with defined fields in an index template but also dynamic mapping enabled | |
# you can run into not knowing what dynamic fields exist, which is not a good idea | |
# so the idea here is to be able to list fields existing in templates and indices and compare them | |