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 <Wire.h> | |
| #define SLAVE_ADDRESS 0x04 | |
| #define FLOATS_SENT 3 | |
| float data[FLOATS_SENT]; | |
| void setup() { | |
| pinMode(13, OUTPUT); | |
| Serial.begin(9600); // start serial for output |
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" | |
| // How many leds in your strip? | |
| #define NUM_LEDS 248 | |
| // For led chips like Neopixels, which have a data line, ground, and power, you just | |
| // need to define DATA_PIN. For led chipsets that are SPI based (four wires - data, clock, | |
| // ground, and power), like the LPD8806 define both DATA_PIN and CLOCK_PIN | |
| #define DATA_PIN 5 | |
| //#define CLOCK_PIN 13 |
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
| // RFM12B Receiver for RaspberryPI | |
| // | |
| // Basiert zum Teil auf der Arbeit von Nathan Chantrell | |
| // | |
| // modified by meigrafd @ 16.12.2013 - for UART on RaspberryPI | |
| //------------------------------------------------------------------------------ | |
| #include <RFM12B.h> | |
| #include <avr/sleep.h> | |
| #include <SoftwareSerial.h> | |
| //------------------------------------------------------------------------------ |
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
| // RFM12B Sender for DHT22 Sensor with Watchdog (saves much more Power!) | |
| // | |
| // Basiert zum Teil auf der Arbeit von Nathan Chantrell | |
| // | |
| // modified by meigrafd @ 12.01.2015 | |
| //------------------------------------------------------------------------------ | |
| #include <RFM12B.h> | |
| #include <avr/sleep.h> | |
| #include <DHT22.h> // https://github.com/nathanchantrell/Arduino-DHT22 |
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
| Programs -> OSMC Settings -> PI Config -> Hardware Support -> Soundcard overlay = "hifiberry-digi-overlay" | |
| Remove LIRC from config | |
| Reboot | |
| Settings -> System -> Audio Output -> Audio Output Device -> "Alsa: Default(snd_hifiberry_digi...) |
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-get install ncftp | |
| sudo apt-get install duplicity | |
| sudo apt-get install python-paramiko python-gobject-2 |
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
| C:\Users\kenci\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9\xtensa-lx106-elf\lib |
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
| #!/bin/bash | |
| result=$(sudo /sbin/hdparm -C /dev/sda1) | |
| if [[ $result == *"active"* ]] | |
| then | |
| echo true; | |
| else | |
| echo false; | |
| fi |
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
| Flash frequency = 80 Mhz | |
| Cpu frequency = 160 Mhz | |
| Flash Size = 1M (256K SPIFFS) | |
| DIO | |
| Speed = 921.000 |
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
| /** | |
| * gcc -std=c99 clk.c -o clk -lbcm2835 -ltm1638 | |
| * | |
| * @file | |
| * @brief Hello World for TM1638 based displays | |
| * @author Martin Oldfield <[email protected]> | |
| * @version 0.1 | |
| * | |
| * @section DESCRIPTION | |
| * |