Skip to content

Instantly share code, notes, and snippets.

@jonbro
jonbro / miniscuptingnotes.md
Last active February 14, 2024 02:09
Miniature sculpting notes.md

materials

some kind of wire to make armatures - I'm using 1mm steel galvanized stuff that I got at the hardware store. Some people use paperclips, but I found they break very easily. The important thing is that you want your armature to be very stable. I was initially using 0.5mm wire and my models were flexing all over the place. The sculpting media is pretty thick, so you gotta use some serious force to get it on the model.

you will need at a minimum, green stuff - this is sold as Kneadatite. Do not buy it from "the army painter" or "greenstuff world", they repackage it in a hilariously small pack and raise the price on it a shit load. Apparently you can use "grey stuff" aka procreate as an alternative, but I haven't tried it so I can't vouch for it.

once you have the greenstuff, you've got options:

  • mix the greenstuff with milliput - I use a 50:50 ratio and its really nice. Greenstuff on its own cures to a quite soft consistency, and you can't sand it. adding milliput makes it cure rock hard. you can
@jonbro
jonbro / jbtcc1.p8
Last active December 11, 2023 19:21
r=rnd
cls(1)
for i=127,0,-.5 do
x=i/10+r(i/2)c=3
h=64
y=r(20)if i>99 then x=r(3)+3;c=4 end
line(h-x,i,h,i-y,c)line(h+x,i,c)end
@jonbro
jonbro / tlvconfig.c
Created July 24, 2023 23:13
tlvconfig
#include "tlv320driver.h"
#include "i2c_dma.h"
#define I2C_PORT i2c1
#define I2C_SDA 2
#define I2C_SCL 3
#define TLV_RESET_PIN 21
// #define TLV_DEBUG 1
#define TLV_I2C_ADDR 0x18
#define TLV_REG_PAGESELECT 0

first some good stuff:

  • the implementation of uxnemu is great, really easy to lift the whole thing.
  • writing devices / drivers was incredibly clear! I got this done in a matter of minutes.

the stuff I struggled with a bit

  • from the documentation its unclear which operations pop from the stack. I think its assumed that all operations pop an element, and some write a single element back, but I wasn't sure, and just went and looked at the implementation to be sure.
  • the reference documentation could use some more examples. INC is great, but stuff like LDR or STA would be amazing if they included examples. I recognize this is more difficult because it requires showing not just the stack, but also program memory, but it feels doable?
  • the debugger in uxn32 is invaluable for a noob. I'd love to see some extentions to it though:
    • pause on start, so that you don't just break at your first overflow / underflow
  • state unwinding. The uxn memory footprint
@jonbro
jonbro / readme.txt
Created November 5, 2022 16:34
Path to the bee (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@jonbro
jonbro / readme.txt
Created November 5, 2022 16:33
fight mob (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@jonbro
jonbro / readme.txt
Created November 2, 2022 04:42
Path to the bee (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@jonbro
jonbro / input_output_copy_i2s.pio
Last active May 23, 2021 01:25
driver for tlv320aic3204 for pi pico
;
; Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
;
; SPDX-License-Identifier: BSD-3-Clause
;
; Transmit a mono or stereo I2S audio stream as stereo
; This is 16 bits per sample; can be altered by modifying the "set" params,
; or made programmable by replacing "set x" with "mov x, y" and using Y as a config register.
;
@jonbro
jonbro / GenerateColorTexture.cs
Created December 11, 2020 22:27
Editor Script that generates a single color texture
using System.IO;
using UnityEngine;
using UnityEditor;
public class GenerateColorTexture : EditorWindow
{
private Color textureColor;
private string textureName;
private Vector2Int dimensions;
Here is the plan for todays stream. Bang out a quick PCB.
going to combine this:
https://github.com/mmalex/wagyu - a eurorack synthesizer module based on an stm32f4
with this
https://hackaday.io/project/165032-pewpew-m4 - a handheld game console
The goal is to keep as many of the parts from the jlcpcb assembly parts list.
open questions: