Can you automate the drawing with a script? On X11, you can:
#!/bin/sh
# Position the pointer at the center of the dot, then run this script.
sleep 1
start=$(xdotool getmouselocation --shell)
eval $start
r=400
steps=100
down=0
for step in $(seq $((steps + 1)) )
do
# pi = 4 * atan(1)
new_x=$(printf '%s + %s * c(%s / %s * 2 * (4 * a(1)))\n' $X $r $step $steps | bc -l)
new_y=$(printf '%s + %s * s(%s / %s * 2 * (4 * a(1)))\n' $Y $r $step $steps | bc -l)
xte "mousemove ${new_x%%.*} ${new_y%%.*}"
if ! (( down ))
then
xte 'mousedown 1'
down=1
fi
done
xte 'mouseup 1'
xte "mousemove $X $Y"
Interestingly, you can abuse the scoring system (not manually, only with a script). Since the mouse jumps to the locations along the circle, you can just use very few steps and still get a great score because every step you make is very accurate – but the result looks funny:
🥴
@aelaraji@aelaraji.com oh yeah! You will feel in heaven, me thinks, because that new machine will go around the Pi a few laps. Have fun, mate!
That’s a great idea. I am running GoToSocial in a local server (like Raspberry Pi) and it’s working fine.
#genuary #genuary2025 #genuary17 Maybe related to today prompt: What happens if pi=4? https://youtu.be/tGfUaZ8hTzg
should put together my new pi and set up the DIY KVM thing i’m doing but ehhh tired
So, I had a talk with the CFO last night about this. Nothing to be gained yet, but baby steps. I think we might be able to get one for Christmas. That is, if there is any left. These little things are flying off the shelves like hot apple pies!
@falsifian@www.falsifian.org the reason behind his sporadic disappearances is that he runs things from a Raspberry Pi, at home, I believe. That impacts reliability, I figure.
sometimes i think i should return to a cleaner state of mind, abandon all big never-to-be-finished projects, and write simple text-processing utilities on a raspberry pi running plan 9, improvising fractile jazz over a lonely lake and spend most of my remaining time meditating.
actually, scratch the “pi-” prefix, why not make “ĉit-” the prefix?
a minimal MIT licensed chain loader for multiple architectures, including pi4. found via raspi3 baremetal tutorial link (same author): [[https://gitlab.com/bztsrc/imgrecv]] #pi4 #baremetal #links #pi
bare-metal programming on a raspberry pi 3, a tutorial: [[https://github.com/bztsrc/raspi3-tutorial]] #links #pi #pi3 #baremetal #lowlevel #c
created a page on bare metal development on a pi !pi_baremetal