- How to fix corrupted bash-completion in command substitution?
- valid SSL certificate verification reports as “Self-signed” and fails on ubuntu 14.04 for godaddy CA signed sites, despite root CAs being in
- How this process running in the background?
- v4l2loopback Devices Not Showing Up In Linphone 'webcam list'
- Samba user cant authenticate
- grub2 using wrong /boot partition
- bash loop through list of strings
- How to remove a single command from TCSH history?
- Why would be several partitions be of any good for servers?
- Unable to enable SMART support for external hard drive
- Find the right device to reverse-engineer
- CentOS 7.5 losing static IP on reboot
- Minimum image size for scanning/recognizing faces in a list?
- Presenting low scores to users - emotional impact
- Is there a name for a song that describes a dance?
- redundancy of term age level
- Is this grammatically correct? “Martin heard footsteps rushing towards his office.”
- “Quintessential Example”
- “at” or “in” the same visit?
- What is the difference between 'which' and 'that'?
SH1106 - Transferring long buffer via SPI
I am using an SH1106 and am creating my own driver for it. Nearly everything is doing great with about 2/3ms send time using transfer16. I did notice however that I can use transfer with a buffer and length to give a 1ms display time; something that'd be extremely useful.
For reference before here is the datasheet:
So the working solution is this:
for (int page = 0; page < 8; page++)
SPI.transfer(0xB0 + page);
for (int column = 0; column < 128; column += 2)
SPI.transfer16(buffer[(page * 128) + column]);
This for each of the 8 pages writes the 128 bytes 2 at a time. I want to write the 128 bytes in a single call. This would be something like this:
SPI.transfer(buffer + (page * 128), 128