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/env python3 | |
import asyncio | |
import bleak | |
import igsparser | |
import influxdb_client | |
VALID_SENSORS={ | |
"80:6F:B0:C5:4B:35": { |
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/env python3 | |
import sys | |
import math | |
import shutil | |
from PIL import Image | |
def doublepixel(c1, c2): |
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/env python | |
# -*- coding: utf-8 -*- | |
import sys | |
import pygame | |
import pygame.midi | |
MIDI_DEVICE_NAME_MATCH = "nanoPAD" | |
# set up pygame |
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
00, val, 104, 0 | |
01, val, 97, 1 | |
02, val, 110, 2 | |
03, val, 115, 3 | |
04, val, 32, 4 | |
05, val, 112, 5 | |
06, val, 108, 6 | |
07, val, 122, 7 | |
08, load, 0 | |
09, prt |
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" | |
#include "config.h" | |
#include <Adafruit_GFX.h> | |
#include <Adafruit_SSD1331.h> | |
#include <SPI.h> | |
#define sclk 13 | |
#define mosi 11 | |
#define cs 10 |
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 time | |
from pyA20.gpio import gpio | |
from pyA20.gpio import port | |
#import RPi | |
class DHT22Result: | |
'DHT22 sensor result returned by DHT22.read() method' | |
ERR_NO_ERROR = 0 |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>test bc</title> | |
<!-- | |
Get it from: https://github.com/metafloor/bwip-js | |
!--> | |
<script type="text/javascript" src="./freetype.js"></script> | |
<script type="text/javascript" src="./bwipp.js"></script> |
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" | |
#include "config.h" | |
struct TTEST { | |
char id[3]; | |
bool test_bool; | |
uint8_t ipadress[4]; | |
uint8_t volume; |
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> | |
int current_pos = 7; | |
int motor_speed = 20; | |
int motor_pins[4] = { 9, 6, 7, 8 }; | |
bool positions[8][4] = { | |
{ 1, 0, 0, 0 }, | |
{ 1, 1, 0, 0 }, | |
{ 0, 1, 0, 0 }, | |
{ 0, 1, 1, 0 }, |
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
/** | |
* PhantomJS script to capture/render screenshots of the slides of a Reveal.js powered slideshow. | |
*/ | |
var page = require('webpage').create(); | |
var args = require('system').args; | |
// Get url to render from command line. | |
var url; | |
if (args.length < 2) { |
NewerOlder