bus-ninja icon indicating copy to clipboard operation
bus-ninja copied to clipboard

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

Open noupu opened this issue 10 years ago • 2 comments

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

]

noupu avatar Nov 27 '13 08:11 noupu

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.

pfalcon avatar Nov 28 '13 20:11 pfalcon

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).

noupu avatar Nov 29 '13 08:11 noupu