|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Cyprus
What we are asking for is some example code for using LEDs. We will be able to adjust the code to fit our wiring, but we have tried using all of the Digital Outs and none of them seem to work.
If anyone has any advice on using external LEDs with the Cypress, it will be greatly appreciated if you would post them. |
|
#2
|
||||
|
||||
|
Re: Cyprus
Attach it via USB to your classmate.
go to WPI library > driver staion > compatibility IO > Set Digital Output Create constant on the input, an array comes up. Expand to have 8 booleans, and set them as you want. That should light up the LEDs on the Cypress and the external LEDs if you attached them with resistors. |
|
#3
|
||||
|
||||
|
Re: Cyprus
The thing is, our Cypress is connected and we can get input from it...our LEDs just don't seem to change no matter what we do.
We made a program that went through each input and set it to its opposite value and nothing happened. We tried the code with the built-in LEDs and it worked though. I guess it might be a wiring issue... |
|
#4
|
||||
|
||||
|
Re: Cyprus
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|