Charlieplexing: Now uses the TristatePort class
#1
Posted 25 November 2010 - 05:06 AM
#2
Posted 25 November 2010 - 05:25 AM
#3
Posted 25 November 2010 - 12:33 PM
TristatePort?
I've never seen that... I'll have to look into it.
Today LED's, tomorrow, the world!!! Well, OK, maybe servos.
#4
Posted 25 November 2010 - 01:56 PM
As for a new type of port, have you looked at TristatePort?
Chris
Wow I had no clue that class was there! To set a tristate port as input (like having an InputPort) do I do "port.Active = false"?
I have to update this code now.
#5
Posted 25 November 2010 - 05:29 PM
Wow I had no clue that class was there! To set a tristate port as input (like having an InputPort) do I do "port.Active = false"?
Precisely.
Chris
#6
Posted 25 November 2010 - 06:21 PM
Will .Write(false/true) override the .Active = false? or should I first write .Active = true;?Precisely.
Chris
EDIT; I got it now. this is really cool, I think its more efficient now.
#7
Posted 25 November 2010 - 06:35 PM
Will .Write(false/true) override the .Active = false? or should I first write .Active = true;?
With TristatePorts, you should write ".Active = true;" to switch from input to output.
Chris
#8
Posted 25 November 2010 - 07:10 PM
Thanks for the help, I updated the code and now it works way faster! Now all the LEDs can be on at the same time with no visible flicker.With TristatePorts, you should write ".Active = true;" to switch from input to output.
Chris
#9
Posted 25 November 2010 - 07:12 PM
Thanks for the help, I updated the code and now it works way faster! Now all the LEDs can be on at the same time with no visible flicker.
Nice!
#10
Posted 07 May 2011 - 03:45 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users