def fizzbuzzchall(n):
    if fizzbuzz(n):
        fizzbuzz(n)
    elif fizz(n):
        fizz(n)
    elif buzz(n):
        buzz(n)
Beispiel #2
0
from buzz import buzz
from nikeBG import nikeBG
from utils import myPrint

in_ = input('ime: ')

myPrint(buzz(in_))

myPrint(nikeBG(in_))



def main():
    dev = InputDevice(argv[1])
    buzz_id = int(argv[2])

    for event in dev.read_loop():
        buzz(buzz_id)
Beispiel #4
0
 def send_text():
     buzz(request.form["Body"].strip())
     return RESP
def main():
    buzz_number = int(argv[1])

    while True:
        raw_input("> ")
        buzz(buzz_number)
Beispiel #6
0
def button_pressed(pin):
    buzz(pin_table[pin])
def main():
    dev = InputDevice(argv[1])
    buzz_id = int(argv[2])

    for event in dev.read_loop():
        buzz(buzz_id)
def main():
    buzz_number = int(argv[1])

    while True:
        raw_input("> ")
        buzz(buzz_number)
Beispiel #9
0
#!/usr/bin/env python
# The main program
# This handles the text console for the administrator, as well as handles the Buzz! controllers

import curses, traceback, time, database, json, websocket
import database, buzz
from helper import *
from catagories import catagories

Debug = True
roundlength = 30
state = 0
team = False

db = database.pyrDB()
buzz = buzz.buzz()
cataclass = catagories(db)

# The Main two functions -- addtional functions for other screens are elsewhere
# Function - Off Round
def OffRound(window):
	global state, messages, db, team
	# curses.cbreak() # Don't wait for enter
	SetTime(0)
	stdscr.addstr(3,0, "1 - Show Penny")
	stdscr.addstr(4,0, "2 - Select Contestants")
	stdscr.addstr(5,0, "3 - Show Catagories")
	stdscr.addstr(7,0, "4 - Start/Stop Videos")
	stdscr.addstr(8,0, "5 - Start/Stop Theme")
	stdscr.addstr(9,0, "6 - Start/Stop Timer")
	stdscr.addstr(11,0, "7 - Send Message")