373f70a34ec9f3e02cb97914ba3d1f56fbc9f84e
SDK-dat/rshell-dat/rshell-dat.md
| ... | ... | @@ -0,0 +1,6 @@ |
| 1 | + |
|
| 2 | +# rshell-dat |
|
| 3 | + |
|
| 4 | +https://github.com/dhylands/rshell == Remote MicroPython shell. |
|
| 5 | + |
|
| 6 | + pip3 install rshell |
|
| ... | ... | \ No newline at end of file |
Tech-dat/sensor-camera-dat/camera-SDK-dat/camera-SDK-dat.md
| ... | ... | @@ -17,7 +17,30 @@ |
| 17 | 17 | |
| 18 | 18 | - https://github.com/namato/micropython-ov2640 |
| 19 | 19 | |
| 20 | - |
|
| 20 | + git clone https://github.com/namato/micropython-ov2640 |
|
| 21 | + cd micropython-ov2640 |
|
| 22 | + sudo ampy -p /dev/ttyUSB0 put boot.py |
|
| 23 | + sudo ampy -p /dev/ttyUSB0 put main.py |
|
| 24 | + sudo ampy -p /dev/ttyUSB0 put ov2640_constants.py |
|
| 25 | + sudo ampy -p /dev/ttyUSB0 put ov2640_hires_constants.py |
|
| 26 | + sudo ampy -p /dev/ttyUSB0 put ov2640_lores_constants.py |
|
| 27 | + sudo ampy -p /dev/ttyUSB0 put ov2640.py |
|
| 28 | + |
|
| 29 | +Then initialize and capture still frames using code like this. The included main.py contains an example. |
|
| 30 | + |
|
| 31 | + import ov2640 |
|
| 32 | + cam = ov2640.ov2640() |
|
| 33 | + nbytes = cam.capture_to_file("/image.jpg") |
|
| 34 | + |
|
| 35 | +A good way to retrieve files for testing/verification is [[rshell-dat]]. |
|
| 36 | + |
|
| 37 | + sudo rshell -p /dev/ttyUSB0 |
|
| 38 | + Connecting to /dev/ttyUSB0 ... |
|
| 39 | + Welcome to rshell. Use Control-D to exit. |
|
| 40 | + /home/namato/micropython-ov2640> |
|
| 41 | + /home/namato/micropython-ov2640> cp /image2.jpg . |
|
| 42 | + |
|
| 43 | +This will copy the newly created image locally for viewing. |
|
| 21 | 44 | |
| 22 | 45 | |
| 23 | 46 |