Reference   Language | Libraries | Comparison | Changes

BigIOinput library

The BigIOinput library reads unlimited digital inputs from any parallel to serial input hardware based on the 74'595, e.g., Mama's Big-IO-input 64-bit parallel-to-serial input card. It has a map option to rewire in software.

Functions

BigIOinput(size, clock, shift, qh)	// size and pins

load()		// load register from external inputs

= shift()	// shift one bit from register
= shift(size)	// ... size bits ...

= read(position)                	// read bit at position
= read(size, position)          	// ... size bits starting at position
read(size, position, buffer)    	// ... to packed binary buffer
read(size, position, buffer, map)	// ... permuted by map

bit and byte indices, positions and values are all zero-origin little-endian
so pointers to int, long, etc. should work as expected with Arduino avr-gcc
assuming extra high-order bits are set to known values, e.g., zeros.

Note

This mere copy of comments in BigIOinput.h is awfully sketchy but documenting Trixel was so painful better docs must wait until I get or make tools to automate the work. Maybe I'll try Doxygen someday, when I asked the excellent Arduino team if they use such tools, someone remarked they probably should. Meanwhile, read the examples.

See also

Reference Home

Corrections, suggestions, and new documentation should be posted to the Forum.

The text of the Arduino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.