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 AVR Makefile | |
| # | |
| # written by michael cousins (http://github.com/mcous) | |
| # released to the public domain | |
| # Makefile | |
| # | |
| # targets: | |
| # all: compiles the source code | |
| # test: tests the isp connection to the mcu |
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
| from paho.mqtt.client import Client | |
| import time | |
| topic_test1 = "test/1" | |
| topic_test2 = "test/2" | |
| last_msg = {} | |
| client = Client(client_id = "sub-test") |
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
| from shimmer_listener import BtSlaveInputStream | |
| def on_connect(mac, info): | |
| print(f"BT MAC {mac}: received presentation frame, {info}") | |
| def on_disconnect(mac, lost): | |
| if lost: | |
| print(f"BT MAC {mac}: connection lost") | |
| else: | |
| print(f"BT MAC {mac}: disconnecting") |
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 sys | |
| prop = None | |
| with open(sys.argv[1], "r") as f: | |
| prop = f.read() | |
| res = "{\n" | |
| for line in prop.split("\n"): |
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
| sudo apt install build-essential libncursesw5-dev libreadline-gplv2-dev libssl-dev libgdbm-dev libc6-dev libsqlite3-dev libbz2-dev libffi-dev |
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
| class Arduino: | |
| def __init__(self, nome, microcontr): | |
| self._nome = nome | |
| self._microcontr = microcontr | |
| def __str__(self): | |
| return f"Arduino {self._nome}" | |
| def __repr__(self): | |
| return f"Arduino(nome={self._nome}, microcontr={self._microcontr})" |
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 <PDM.h> | |
| #include <arm_math.h> | |
| #include <Arduino_HTS221.h> | |
| #include <Arduino_LPS22HB.h> | |
| #include <Arduino_APDS9960.h> | |
| #include <ArduinoBLE.h> | |
| #define BLE_NAME "Moody-ble" |
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 <FastLED.h> | |
| #define NUM_LEDS 64 | |
| #define DATA_PIN 0 | |
| CRGB leds[NUM_LEDS]; | |
| int set = 0; | |
| 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
| #include <MoodyEsp8266.h> | |
| #include <DHT.h> | |
| #include "certs.h" | |
| #define DATA_PIN 0 | |
| #define DHT_TYPE DHT11 | |
| MoodySensor sensor; | |
| DHT dht(DATA_PIN, DHT_TYPE); |
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
| FROM openjdk:11.0.8 | |
| ENV CLASSPATH="/usr/lib/jade/jade.jar" | |
| RUN wget --no-check-certificate -O jade.zip https://jade.tilab.com/dl.php?file=JADE-bin-4.5.0.zip | |
| RUN unzip jade.zip && mkdir /usr/lib/jade && mv jade/lib/jade.jar /usr/lib/jade/jade.jar && rm -rf jade/ jade.zip | |
| CMD [""] |
NewerOlder