Skip to content

Decimal delays #4

Description

@MarkAYoder

I'd like a delay of less than 1ms, so I tried:

SCRIPT
SET DIO[0], 1
WAIT 0.1
SET DIO[0], 0
WAIT 0.1
GOTO 0
ENDSCRIPT
RUN

I got the following:

Initializing PRU Speak
Illegal character '.'
Traceback (most recent call last):
File "./my_example_copy.py", line 87, in
ret = pru_speak.execute_instruction(EX6)
File "/root/pruspeak/src/userspace_lib/pru_speak/pruspeak.py", line 92, in execute_instruction
byte_code = parser.parse(inst)
File "/usr/local/lib/python2.7/dist-packages/ply/yacc.py", line 265, in parse
return self.parseopt_notrack(input,lexer,debug,tracking,tokenfunc)
File "/usr/local/lib/python2.7/dist-packages/ply/yacc.py", line 921, in parseopt_notrack
lookahead = get_token() # Get the next token
File "/usr/local/lib/python2.7/dist-packages/ply/lex.py", line 387, in token
raise LexError("Scanning error. Illegal character '%s'" % (lexdata[lexpos]), lexdata[lexpos:])
ply.lex.LexError: Scanning error. Illegal character '.'
PRU Speak object deleted

BOTSPEAK allows decimal delays, does PRUSPEAK?

--Mark

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions