tobyjaffey/bus-ninja

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

Opened this issue · 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

]

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: pfalcon@35b2e7f . I intended to clean it up and submit to mainline, but that got into backlog. Feel free to try it though.

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