tobyjaffey / bus-ninja

AVR Bus-Pirate-a-like
http://blog.hodgepig.org/busninja/
89 stars 33 forks source link

one more output line needed to control some devices in SPI mode #12

Open noupu opened 10 years ago

noupu commented 10 years ago

Some devices (Nokia 5110) require one more output line (Code/Data) in SPI mode.

Could some extra commands (parentheses?) please be added to Bus-ninja to handle this?

Example:

initialize (command)

[ ( 0x21 0x14 0xaf 0x20 0x0e 0x43 0x8f )

draw (data)

0x55 0xaa

deactivate SS

]

pfalcon commented 10 years ago

Note: this issue formulated is a bit confusingly, I hope I understand what you mean right. So, you're asking for extra adhoc command to control one pin. But what if you need to control 2, 5, 10 lines? I added generic port pin access commands to my fork: https://github.com/pfalcon/bus-ninja/commit/35b2e7fc77fc9bab757c10f97c8d72c60f8b9f49 . I intended to clean it up and submit to mainline, but that got into backlog. Feel free to try it though.

noupu commented 10 years ago

Thanks, I was unaware of the branch. Hope to check it out soon.

There is some convenience, however, in having shortcuts to control one another pin (besides of SS).