How to interface with a Stream Deck device.
The device uses the HID protocol to communicate with its software.
// This Arduino example demonstrates bidirectional operation of a | |
// 28BYJ-48, which is readily available on eBay for $4.25 inc shipping, | |
// using a ULN2003 interface board to drive the stepper. The 28BYJ-48 | |
// motor is a 4-phase, 8-beat motor, geared down by a factor of 64. One | |
// bipolar winding is on motor pins 1,3 and the other on motor pins 2,4. | |
// Refer to the manufacturer's documentation of Changzhou Fulling | |
// Motor Co., Ltd., among others. The step angle is 5.625/64 and the | |
// operating Frequency is 100pps. Current draw is 92mA. | |
// Vin w USB power is 4.5v too slow for testing use 5v pin. | |
//#include <Narcoleptic.h> |
""" | |
Lyle Scott, III // lyle@ls3.io | |
Multiple ways to rotate a 2D point around the origin / a point. | |
Timer benchmark results @ https://gist.github.com/LyleScott/d17e9d314fbe6fc29767d8c5c029c362 | |
""" | |
from __future__ import print_function | |
import math |
A complete list of books, articles, blog posts, videos and neat pages that support Data Fundamentals (H), organised by Unit.
If the resource is available online (legally) I have included a link to it. Each entry has symbols following it.
import ezdxf | |
import argparse | |
class DiameterToRadius(argparse.Action): | |
def __call__(self, parser, namespace, values, option_string=None): | |
print('%r %r %r' % (namespace, values, option_string)) | |
if values > 0: | |
values = values/2.0 | |
setattr(namespace, self.dest, values) |
#include <Arduino.h> | |
#include <ESP8266WiFi.h> | |
#include <ESP8266WiFiMulti.h> | |
#include <ESP8266HTTPClient.h> | |
#include <WiFiClientSecureBearSSL.h> | |
ESP8266WiFiMulti WiFiMulti; |
#!/usr/bin/env python3 | |
import sys | |
import io | |
from pprint import pprint | |
from pathlib import Path | |
from tqdm import tqdm | |
from binascii import b2a_hex | |
import shutil | |
import tempfile |
from LCD_3inch5 import LCD_3inch5 | |
import framebuf | |
from math import sin,cos,pi, radians | |
from time import sleep_ms, sleep_us, ticks_diff, ticks_us, sleep | |
from micropython import const | |
from uctypes import addressof | |
import array | |
from usys import exit | |
import gc |
from LCD_3inch5 import LCD_3inch5 | |
from machine import Pin | |
import framebuf | |
from time import sleep_ms, sleep_us, ticks_diff, ticks_us, sleep | |
from micropython import const | |
import array | |
from usys import exit | |
import gc | |
from random import randint | |
from math import sin,cos,pi, radians |