Ejemplo n.º 1
0
#Ian Hattwick   
#March 21, 2021

PACKET_INCOMING_SERIAL_MONITOR = 0

CUR_PYTHON_SCRIPT = "minviable.py"
    
import serial, serial.tools.list_ports, socket, sys, asyncio,struct,time, math
from pythonosc import osc_message_builder
from pythonosc import udp_client
from pythonosc.osc_server import AsyncIOOSCUDPServer
from pythonosc.dispatcher import Dispatcher

#m370 python modules
import scripts.m370_communication as m370_communication
comms = m370_communication.communication("serial", baudrate = 115200, defaultport="/dev/tty.SLAB_USBtoUART")
import scripts.timeout as timeout
#you can change the defaultport to the name your PC gives to the ESP32 serial port

import sensorInput as sensor
import oscMappings as osc
osc.comms = comms   

t = timeout.Timeout(5)
osc.t = t


######################
#SETUP osc
######################
#initialize UDP client
CUR_PYTHON_SCRIPT = "currentFramework.py"

import serial, serial.tools.list_ports, socket, sys, asyncio, struct, time, math
from pythonosc import osc_message_builder
from pythonosc import udp_client
from pythonosc.osc_server import AsyncIOOSCUDPServer
from pythonosc.dispatcher import Dispatcher

#import midi.pyç

#m370 python modules
import scripts.m370_communication as m370_communication

#for wifi
comms = m370_communication.communication("wifi")

comms2 = m370_communication.communication(
    "serial", baudrate=115200, defaultport="/dev/tty.usbserial-1410")
import scripts.timeout as timeout
#you can change the defaultport to the name your PC gives to the ESP32 serial port

#####midi input######
if MIDI_ENABLE:
    import scripts.midi as midi
    midi.probePorts()
    midi_input = midi.input(0)

##########

import sensorInput as sensor
Ejemplo n.º 3
0
#April 17, 2021

PACKET_INCOMING_SERIAL_MONITOR = 0

CUR_PYTHON_SCRIPT = "chester_v2.py"

import serial, serial.tools.list_ports, socket, sys, asyncio, struct, time, math
from pythonosc import osc_message_builder
from pythonosc import udp_client
from pythonosc.osc_server import AsyncIOOSCUDPServer
from pythonosc.dispatcher import Dispatcher

#m370 python modules
import scripts.m370_communication as m370_communication
comms = m370_communication.communication("wifi",
                                         SSID="MLE",
                                         password="******")
#comms = m370_communication.communication("serial", baudrate = 115200, defaultport="/dev/tty.SLAB_USBtoUART")
import scripts.timeout as timeout
#you can change the defaultport to the name your PC gives to the ESP32 serial port

import sensorInput as sensor
import oscMappings as osc
osc.comms = comms

t = timeout.Timeout(5)
osc.t = t

######################
#SETUP osc
######################
Ejemplo n.º 4
0
MIDI_ENABLE = 0

CUR_PYTHON_SCRIPT = "chester_v3.py"

import serial, serial.tools.list_ports, socket, sys, asyncio, struct, time, math
from pythonosc import osc_message_builder
from pythonosc import udp_client
from pythonosc.osc_server import AsyncIOOSCUDPServer
from pythonosc.dispatcher import Dispatcher

#import midi.py

#m370 python modules
import scripts.m370_communication as m370_communication
comms = m370_communication.communication("wifi",
                                         SSID="MLE",
                                         password="******")
comms2 = m370_communication.communication(
    "serial", baudrate=115200, defaultport="/dev/tty.usbserial-1410")
import scripts.timeout as timeout
#you can change the defaultport to the name your PC gives to the ESP32 serial port

#####midi input######
if MIDI_ENABLE:
    import scripts.midi as midi
    midi.probePorts()
    midi_input = midi.input(0)

##########

import sensorInput as sensor
PACKET_INCOMING_SERIAL_MONITOR = 0
MIDI_ENABLE = 0

CUR_PYTHON_SCRIPT = "currentFrameworkLED.py"

import serial, serial.tools.list_ports, socket, sys, asyncio, struct, time, math
from pythonosc import osc_message_builder
from pythonosc import udp_client
from pythonosc.osc_server import AsyncIOOSCUDPServer
from pythonosc.dispatcher import Dispatcher

#m370 python modules
import scripts.m370_communication as m370_communication

#for wifi
comms = m370_communication.communication("wifi")

#comms = m370_communication.communication("serial", baudrate = 115200, defaultport="/dev/tty.usbserial-1410")
import scripts.timeout as timeout
#you can change the defaultport to the name your PC gives to the ESP32 serial port

#####midi input######
if MIDI_ENABLE:
    import scripts.midi as midi
    midi.probePorts()
    midi_input = midi.input(0)

##########

import sensorInput as sensor
import oscMappings as osc