eBoard ①⑧⑨
Written for SIA 2017/2018
[ ✍️ ] SHIFT

This tutorial shows you how to deal with the Shift extension! More...

This tutorial shows you how to deal with the Shift extension!

Note
To use this:
#define EBOARD_SHIFT_REGISTER 0x1

Pin extensions

It is possible to extend the amount of available pins via SN74HC595 Shift-Registers. Connect them like this:

t.png
Note
it is possible to extend the amount of shiftregisters. This version of eBoard supports up to 32 (64) additional pins.
But it is possible to connect even more!

To assign this pins with the special values you can use the SoccerBoard::power() [SoccerBoard::powerOn(); SoccerBoard::powerOff()] Syntax with pinIDs >99 [100 => 0 etc.] This is an example-program:

#define EBOARD_SHIFT_REGISTER 0x1
#include <eBoard.h>
//manual: '#include "/path/to/eBoard.h"'
int main() {
board.powerOn(100);
return 0;
}

This will set the Output value of Pin 100 (Q0 on the first SN74HC595) to HIGH.

Hardware specific

store_bits can be modified via bitSet()/bitClear() or long assignment (like = 1000);