This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
centipede_shield [2015/03/25 20:12] macegr [Code Example] |
centipede_shield [2019/04/19 05:15] (current) macegr [Code Example] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
{{: | {{: | ||
Line 67: | Line 67: | ||
.pinPullup([0...127], | .pinPullup([0...127], | ||
.portPullup([0...7], | .portPullup([0...7], | ||
+ | .portInterrupts([0...7], | ||
+ | [device number], | ||
+ | .portCaptureRead(0...7) - Reads 16-bit value registers as they were when interrupt occurred | ||
.init() - Sets all registers to initial values | .init() - Sets all registers to initial values | ||
Line 79: | Line 82: | ||
CS.pinPullup(1, | CS.pinPullup(1, | ||
CS.portPullup(0, | CS.portPullup(0, | ||
+ | CS.portInterrupts(0, | ||
*/ | */ | ||
Line 91: | Line 95: | ||
CS.portMode(0, | CS.portMode(0, | ||
- | // | + | // |
//TWBR = 12; // uncomment for 400KHz I2C (on 16MHz Arduinos) | //TWBR = 12; // uncomment for 400KHz I2C (on 16MHz Arduinos) |