SexScripts : E-stim 2B Scripts for Mac - https://ss.deviatenow.com:443/viewtopic.php?f=3&t=932 | Page 1 of 1 |
E-stim 2B Scripts for Mac |
ptdw [ Sat Dec 14, 2019 1:29 am ] | ||
---|---|---|---|
One of the "Spin the Bottle" players recently mentioned having a Mac and a 2B and using the audio interface for shocks. Ever since I saw that comment, I knew I had to document my method of using a serial port (for my own backup as well). Why use the serial port? It's much more precise, and also allows the system to use sounds instead of operating in silence. IMHO playing "Guillotine" or "Strip or Die" without the sound effects is much less terrifying, lol. So, here's what I do: 1) Make sure Python is installed on your Mac (let me know if you need help). 2) Find the serial port your 2B is connected to. With the 2B connected, enter the following into Terminal to see your serial devices: Code: ls /dev/tty* Look for something with usb and serial in the name. For example, mine is "/dev/tty.usbserial-FT9BAM6D" 3) Write a Python script to control the 2B. Mine is SUPER simple. You will need to modify your ttys device name. Code: import sys import serial # configure the 2B serial connection ser = serial.Serial( port='/dev/tty.usbserial-FT9BAM6D', baudrate=9600, parity=serial.PARITY_NONE, stopbits=serial.STOPBITS_ONE, bytesize=serial.EIGHTBITS ) ser.isOpen() if (len(sys.argv) == 0) : exit() else: ser.write(sys.argv[1] + '\r') ser.close() I name the script "send2b.py" 4) Use the Automator app to run the script (I'll attach a screenshot) My 2BOn.app looks like this: Code: /usr/local/bin/python send2b.py B55 and my 2BOff.app looks like this: Code: /usr/local/bin/python send2b.py B0 A or B is the channel, and the number is the power level. I usually set my mode to "continuous" before playing. 5) Use your 2BOn.app and 2BOff.app in the SexScripts games. I have all three of the files in the SexScripts folder. That's it! Let me know if you have any questions. Hope this helps someone!
|
Re: E-stim 2B Scripts for Mac |
bamaswitch [ Sun Jun 07, 2020 6:57 am ] |
---|---|
Very cool! I'd love to do the same with windows? Any ideas on that OS? |
Page 1 of 1 | All times are UTC + 1 hour [ DST ] |