espruino 74hc595 pin corresponding problem? #3970
Unanswered
espruino-discuss3
asked this question in
General
Replies: 1 comment
-
Posted at 2014-07-22 by @gfwilliams Hi, Take a look at: http://www.espruino.com/ReferenceESPRUINOBOARD And the Arduino example: http://arduino.cc/en/tutorial/ShiftOut Looks like you need 3 wires - Data, Clock, and latch. Because Espruno does software SPI, you can actually use any 3 IO pins. The code you might use is:
Posted at 2014-07-22 by user7335 Thank you Gordon , I really have a first reference Arduino Sample, as you said, I set a MY_DS_PIN = B5, MY_SH_CP_PIN = B3, any 3 IO pins, can not take it? Posted at 2014-07-23 by @gfwilliams Well, you have 2 options:
For software, the code looks like I pasted above. For hardware, it looks like this:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2014-07-22 by user7335
Currently I need to implement multiple LED using 74hc595 ic corresponds to espruino, but I do not know the way the corresponding pin
Beta Was this translation helpful? Give feedback.
All reactions