65 which are mutually connected via a bus 67 the rom 62 stores programs and data etc that are used by the cpu 61 to execute processing the eeprom 64 stores data of various types of sewing patterns that are used for the sewing machine 1 to perform sewing the operation switches 21 the touch panel 26 and drive circuits 71 72 74 75 and 76 are electrically connected to the input output interface 65 the drive circuits 71 72 74 75 and 76 may respectively drive the feed adjustment motor 83 the sewing machine motor 79 the needle bar swinging motor 80 the lcd 15 the receiver 94 and the receiver 95 the drive circuit 76 includes an amplification circuit the amplification circuit may amplify ultrasonic signals detected by the receivers 94 and 95 and may transmit the amplified signals to the cpu 61 the electrical configuration of the ultrasonic pen 91 will be explained the ultrasonic pen 91 includes the switch 913 the signal output circuit 914 and the ultrasonic transmitter 915 the switch 913 is connected to the signal output circuit 914 and the ultrasonic transmitter 915 the signal output circuit 914 can be connected to the input output interface 65 the signal output circuit 914 may output an electrical signal to the cpu 61 via the input output interface 65 a method of.