Exemplo n.º 1
0
def glue(off=False):
    sb = createStringBlock(off, 'glue', 'darkblue')
    sb.addCodeElement("junte")
    sb.addArgumentHolder(createStringBlockHolder(off, sb))
    sb.addCodeElement("com")
    sb.addArgumentHolder(createStringBlockHolder(off, sb))
    return sb
Exemplo n.º 2
0
def alphaNumericType(varName, color, off=False):
    sb = createStringBlock(off, 'alphaNumericType', color)
    sb.varName = varName
    sb.addCodeElement()
    sb.addCodeElement(varName)
    sb.addCodeElement()
    sb.custom = True
    return sb
Exemplo n.º 3
0
def getAlphaNumericVar(off=False):
    sb = createStringBlock(off, 'getAlphaNumericVar', 'red')
    sb.addCodeElement()
    sb.addVariableElement(TITLE_ALPHANUMERIC_VAR, alphaNumericVars)
    sb.addCodeElement()
    return sb
Exemplo n.º 4
0
def waitForAnyMsg(off=False):
    sb = createStringBlock(off, 'waitForAnyMsg', 'darkblue')
    sb.addCodeElement('espere alguma msg monitor serial')
    return sb
Exemplo n.º 5
0
def getMsg(off=False):
    sb = createStringBlock(off, 'getMsg', 'darkblue')
    sb.addCodeElement('leia a msg recebida monitor serial')
    return sb
Exemplo n.º 6
0
def intToStr(off=False):
    sb = createStringBlock(off, 'intToStr', 'darkblue')
    sb.addCodeElement("converte")
    sb.addArgumentHolder(createNumberBlockHolder(off, sb))
    return sb
Exemplo n.º 7
0
def boolToStr(off=False):
    sb = createStringBlock(off, 'boolToStr', 'darkblue')
    sb.addCodeElement("converte")
    sb.addArgumentHolder(createBooleanBlockHolder(off, sb))
    return sb
Exemplo n.º 8
0
def waitForAnySignal(off=False):
    sb = createStringBlock(off, 'waitForAnySignal', 'purple')
    sb.addCodeElement('espere algum sinal')
    sb.addVariableElement('infravermelho', countComponents, 'component_IR')
    return sb
Exemplo n.º 9
0
def getIRValue(off=False):
    sb = createStringBlock(off, 'getIRValue', 'purple')
    sb.addCodeElement('leia o sinal recebido')
    sb.addVariableElement('infravermelho', countComponents, 'component_IR')
    return sb
Exemplo n.º 10
0
def waitForAnyNumber(off=False):
    sb = createStringBlock(off, 'waitForAnyNumber', 'purple')
    sb.addCodeElement('espere algum número')
    sb.addVariableElement('teclado', countComponents, 'component_keypad')
    return sb
Exemplo n.º 11
0
def waitForAnyKey(off=False):
    sb = createStringBlock(off, 'waitForAnyKey', 'purple')
    sb.addCodeElement('espere alguma tecla')
    sb.addVariableElement('teclado', countComponents, 'component_keypad')
    return sb
Exemplo n.º 12
0
def getKey(off=False):
    sb = createStringBlock(off, 'getKey', 'purple')
    sb.addCodeElement('leia a tecla pressionada')
    sb.addVariableElement('teclado', countComponents, 'component_keypad')
    return sb