My corners script for testing pen height and drag. References "paxi" which is my wrapper around fogleman/axi with the prepended "p" because it activates a python venv before executing a command.
This commit is contained in:
parent
45957471c3
commit
1a881e890c
|
@ -0,0 +1,26 @@
|
|||
#!/bin/bash
|
||||
|
||||
#script for testing pen positions across a rectangle
|
||||
#used to test for pen drag
|
||||
|
||||
SCALE=1.255
|
||||
XPOS=`echo "scale=5;$1*$SCALE" | bc`
|
||||
YPOS=`echo "scale=5;$2*$SCALE" | bc`
|
||||
|
||||
touch () {
|
||||
paxi down
|
||||
sleep 1
|
||||
paxi up
|
||||
paxi home
|
||||
}
|
||||
|
||||
touch
|
||||
|
||||
paxi move 0 ${YPOS}
|
||||
touch
|
||||
|
||||
paxi move ${XPOS} 0
|
||||
touch
|
||||
|
||||
paxi move ${XPOS} ${YPOS}
|
||||
touch
|
Loading…
Reference in New Issue