real actual dragon (θΔ). follow for weird photography stuff and the occasional rawr


wolf-apparatus
@wolf-apparatus

here is an excerpt from a recent commit to my soft-UART library. i had to get the fucking oscilloscope out before i figured out what was going on here and now i don't know what on earth i was thinking when i wrote it


wolf-apparatus
@wolf-apparatus

if you've never experienced "programs you have to debug with an oscilloscope": don't



obviously the actual scanner hardware was not involved in the creation of this image (fedex still has all the board components), but it did come off the actual MCU running code that would, if I've done all my homework correctly, drive the CCD, read the ADCs, blink the light, and spin the motors in the correct way to produce a scan, and I know it's at least doing something because if I hook the ADC data pin to ground instead I get a full-black image. So hopefully when I actually build the board it'll only take a bit of messing around to get it going.