The 74HC165 is an 8-bit parallel-load shift register. We can have this as an option for reading many switches kinda like for mechanical keyboard builds. You can chain many 74HC165. I just used the native SPI of the XIAO nRF52840 (Sense) to clock-in the read data. The 74HC165 is not a native SPI device but…
All posts tagged shift register
A shift register abstraction in Golang
This builds up on the Golang ar150gpio package I made for accessing the GPIOs of the GL.iNet AR-150 router. If you are interested, here is the blog entry for it. As the number of outputs of the router is limited, I decided to write an abstraction for use with the shift register 74HC595N to expand…
A Go package repository for GL.iNet AR-150 GPIO control
I have a GL.iNet AR-150 router that I bought from here. It is running OpenWrt. The variant that I chose is the one with an external antenna. I did write a shell script for manipulating the GPIOs. But I lost it(lol). I even implemented an abstraction for the shift register(74HC595). The idea is that the…