Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
You are viewing an older revision! See the latest version
Homepage
Here is the Python Code for the PyQt Gui...¶
from PyQt4.QtGui import *
from PyQt4.QtCore import *
import sys
import serial
def printNumber(number): print number ser = serial.Serial('COM5',9600)
ser.write(unichr(number).encode())
if name=="main": app=QApplication(sys.argv) slider=QSlider(Qt.Horizontal) slider.setRange(1,127) slider.setFixedWidth(400) slider.setSliderPosition(64)
QObject.connect(slider,SIGNAL("valueChanged(int)"),printNumber)
slider.show() sys.exit(app.exec_())