gokul/macro-six-usbc

A six-key macro keyboard PCB paired with a separate physical enclosure.

Version
0.1.16
License
unset
Stars
0

Use with the tscircuit CLI

tsci is the tscircuit CLI. Install it with npm install -g tscircuit.

tsci clone gokul/macro-six-usbc  # download the package files into ./macro-six-usbc
tsci add gokul/macro-six-usbc    # add it to your project as @tsci/gokul.macro-six-usbc

In a cloned or new (tsci init) project: tsci dev starts a local preview, tsci build outputs Circuit JSON, and tsci push publishes to tscircuit.com.

scripts/assert-geometry-equal.test.ts

import { test, expect } from 'bun:test'
import { assertGeometryEqual } from './assert-geometry-equal'

test('accepts observed Mac/Linux floating-point noise', () => {
  expect(() => assertGeometryEqual([{x: -34.8283102293766}], [{x: -34.82831022937659}])).not.toThrow()
})
test('rejects geometry, topology and layer changes', () => {
  expect(() => assertGeometryEqual({x: 1.000001}, {x: 1})).toThrow()
  expect(() => assertGeometryEqual([{x: 1}], [])).toThrow()
  expect(() => assertGeometryEqual({layer: 'top'}, {layer: 'bottom'})).toThrow()
})