rushabhcodes/desk-fidget-counter

A PLA desk fidget counter assembly houses an F1 PCB, 1.28-inch LCD with harness, rotary knob/bearing mechanism, button cap, and screw-secured base/display mount.

Version
6.0.16
License
MIT
Stars
0

Use with the tscircuit CLI

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

tsci clone rushabhcodes/desk-fidget-counter  # download the package files into ./desk-fidget-counter
tsci add rushabhcodes/desk-fidget-counter    # add it to your project as @tsci/rushabhcodes.desk-fidget-counter

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.

reference/rp2040.json

{
  "pcb_revision": "F1",
  "mcu": "RP2040",
  "mcu_catalogue": "C2040",
  "flash": "W25Q16JVSNIQ",
  "flash_catalogue": "C2456211",
  "flash_bytes": 2097152,
  "crystal": "ABM8-272-T3",
  "crystal_catalogue": "C20625731",
  "crystal_hz": 12000000,
  "system_clock_hz": 48000000,
  "gpio": {
    "MODE_BTN": 0,
    "PERIPH_EN": 1,
    "SDA": 4,
    "SCL": 5,
    "LCD_RST": 16,
    "LCD_CS": 17,
    "SPI_SCK": 18,
    "SPI_MOSI": 19,
    "ENC_A": 20,
    "ENC_B": 21,
    "LCD_DC": 22,
    "LCD_BL": 23
  },
  "i2c_instance": 0,
  "i2c_hz": 300000,
  "spi_instance": 0,
  "spi_hz": 12000000,
  "encoder_pio": 0,
  "encoder_state_machine": 0,
  "encoder_max_step_rate": 400000,
  "programming_header": ["VREF", "SWDIO", "SWCLK", "RUN", "GND", "BOOTSEL"],
  "bootsel": "J4 pin 6 pulls flash CS low through 1k; bridge to J4 pin 5 GND while resetting RUN."
}