Skip to content

Instantly share code, notes, and snippets.

@HerrZatacke
HerrZatacke / slx-2016_shift_hc595n.ino
Last active October 1, 2021 14:08
Adress a SLx2016 LED Matrix display using two 74HC595 8-bit shift registers
#define LATCH 14
#define DATA 15
#define CLOCK 16
#define CHAR_DELAY 100
// https://www.mouser.de/datasheet/2/311/XY%20Stackable%200.180%20%20%20%20%204-Digit%205x7%20Dot%20Matrix_%20Alp-335281.pdf
// https://www.arduino.cc/en/Tutorial/Foundations/ShiftOut
// https://imgur.com/a/Fjh7rst
/*
@HerrZatacke
HerrZatacke / error.txt
Last active July 3, 2019 20:12
Type 'Response' is missing the following properties from type 'Response': redirected, trailer, formData
example.ts:9:11 - error TS2345: Argument of type '(response: Response) => PromiseLike<object>' is not assignable to parameter of type '(value: Response) => object | PromiseLike<object>'.
Types of parameters 'response' and 'value' are incompatible.
Type 'Response' is missing the following properties from type 'Response': redirected, trailer, formData
9 .then(toJson)
~~~~~~
[21:58:53] Found 1 error. Watching for file changes.
<!doctype html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" />
<title>Unbekannter Künstler</title>
<style type="text/css">
* {
font-family: Arial;
@HerrZatacke
HerrZatacke / express.js
Last active July 9, 2018 21:36
ws281x and express
const express = require('express');
const server = express();
server.get('/', express.static(process.cwd()));
server.post('/', (req, res) => {
res.send('a file...');
});
@HerrZatacke
HerrZatacke / index.html
Created June 10, 2018 15:30
electron-issue 12185
<!DOCTYPE html>
<html>
<head>
<title>Test</title>
<style>
pre {
color: red;
}
body {
font-family: sans-serif;