From Mark Willis, Jeff King, Don McKenzie, Craig Lee
(A)--\/\/--+-----+-----+
# | |
# | |
(B)--\/\/--+--+--(--+ |
# # # #
# # # #
(C)--\/\/--+--+--+ | |
# | |
# | |
(D)--\/\/--+--------+--+
Where each ## in the diagram is actually two LED hooked "anti-parallel" like this:
|----|<-----|
-| |-
|---->|-----|
ABCD LED ON
---- ------
0000 none
1111 none
zzzz none
01zz 1
10zz 2
0z1z 3
1z0z 4
z01z 5
z10z 6
0zz1 7
1zz0 8
zz01 9
zz10 10
z0z1 11
z1z0 12
Questions:
James Newton replies: Now that I think about it: Yes, in a microcontroller z would represent a pin that had been set as an input.+
See also:
| file: /Techref/io/led/12w4pins.htm, 2KB, , updated: 2007/4/2 12:58, local time: 2012/2/8 19:18,
38.107.179.230:LOG IN |
| ©2012 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://www.piclist.com/techref/io/led/12w4pins.htm"> Light Emitting Diode Displays - Driving 12 leds with 4 uController pins</A> |
| Did you find what you needed? |
|
Editor, assembler, disassembler and simulator w/ virtual component "plugins" (LED,LCD,key,motor,TV,etc). |
Robotics nuts!Check out http://users.frii.com/dlc/robotics/projects/botproj.htm from Dennis Clark. This guy ROCKS! He has made (and sells but also releases code, docs, etc...) for a number of cool little robotic modules including whiskers, IR proximity detect and remote control, Sonar proximity detect, PWM, Servo, compass. Most of these use the little PIC 12C508 controller which costs basically nothing and is soooo tiny.The 4 servos, 2400 baud serial servo controller is a wonder of magic and he sells the programmed chip for $8. Wow! |
.