File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -55,10 +55,16 @@ connecting and issuing commands to a live Arduino, hosting any hardware
5555required to test a particular function. But a core of basic communication tests
5656should at least be maintained here and used before merging into the ` master ` branch.
5757
58- After installation, the tests can be run from the source directory:
58+ After installation, the interactive tests can be run from the source directory:
5959``` bash
6060$ python tests/test_main.py
6161```
62+
63+ Automated tests can be run from the source directory with:
64+ ``` bash
65+ $ python tests/test_arduino.py
66+ ```
67+
6268## Classes
6369- ` Arduino(baud) ` - Set up communication with currently connected and powered
6470Arduino.
@@ -123,6 +129,13 @@ val = val / 4 # scale to 0 - 255
123129board.analogWrite(11 ) # Set analog value (PWM) based on analog measurement
124130```
125131
132+ ** Shift Register**
133+
134+ - ` Arduino.shiftIn(dataPin, clockPin, bitOrder) ` shift a byte in and returns it
135+ - ` Arduino.shiftOut(dataPin, clockPin, bitOrder, value) ` shift the given byte out
136+
137+ ` bitOrder ` should be either ` "MSBFIRST" ` or ` "LSBFIRST" `
138+
126139** Servo Library Functionality**
127140Support is included for up to 8 servos.
128141
You can’t perform that action at this time.
0 commit comments