aboutsummaryrefslogtreecommitdiff
path: root/ptz-camera.py
blob: cb594135a91678b3c54a7261d387cd2465cf984e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import pyext
import sys
  
class int2bytes(pyext._class):

  # number of inlets and outlets
  _inlets=1
  _outlets=4

  print "int2bytes init"

  # Constructor

  # methods 
  def float_1(self,number):
    number = int(number)
    for count in xrange(4):
      byte = (number & 0xF000) >> 12
      number <<=4
      self._outlet(count+1,byte)