/etc/udev/hwdb.d/90-sbutton.hwdb
evdev:input:b0005v099Ap0500*
KEYBOARD_KEY_c00e9=s
KEYBOARD_KEY_70028=r
#!/usr/bin/env python3 | |
import asyncio | |
import bleak | |
import igsparser | |
import influxdb_client | |
VALID_SENSORS={ | |
"80:6F:B0:C5:4B:35": { |
#include "Arduino.h" | |
#include "config.h" | |
struct TTEST { | |
char id[3]; | |
bool test_bool; | |
uint8_t ipadress[4]; | |
uint8_t volume; |
#!/usr/bin/env python3 | |
import sys | |
import math | |
import shutil | |
from PIL import Image | |
def doublepixel(c1, c2): |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import sys | |
import pygame | |
import pygame.midi | |
MIDI_DEVICE_NAME_MATCH = "nanoPAD" | |
# set up pygame |
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 |
#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 |
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 |
<!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> |
#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 }, |