Right now I want to use the script to control the digital pins via patterns. The pins 0-4 corresponds to column decoders while pins 8-12 corresponds to row decoders. For instance, if the pins 0-4 have the values 00000, and pins 8-12 have 00001, it means that the component at column1 and row 2. I have a 32*32 array, so column and row has 5 bits respectively. I wanna do a sweep for the diagonal components, with each measuring time of 5ms. Could anyone please give some hint please? Thanks so much! Or some example code about how to use the script editor to control the "Patterns", I tried to refer to the "help" in digilent but errors such as "Can't find variable: Patterns" occur. Really appreciate your help!
Question
sijie
Right now I want to use the script to control the digital pins via patterns. The pins 0-4 corresponds to column decoders while pins 8-12 corresponds to row decoders. For instance, if the pins 0-4 have the values 00000, and pins 8-12 have 00001, it means that the component at column1 and row 2. I have a 32*32 array, so column and row has 5 bits respectively. I wanna do a sweep for the diagonal components, with each measuring time of 5ms. Could anyone please give some hint please? Thanks so much! Or some example code about how to use the script editor to control the "Patterns", I tried to refer to the "help" in digilent but errors such as "Can't find variable: Patterns" occur. Really appreciate your help!
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now