KRES

hardware, web and mobile hacks.

First Look at PRU Speak API

| Comments

I managed to get a basic ARM userspace to PRU interaction up and running and even wrote a python API to take care of the interactions. Here is how the API looks like!

1
2
3
4
5
6
7
8
9
10
11
import pru_speak

botspeak_code   = \
'''     SET DIO[0] , 1
        WAIT 1
        SET DIO[0], 0
        WAIT 1
        GOTO 0'''

pru_speak.load(botspeak_code)
pru_speak.execute()

Comments