OpenMV: Difference between revisions
Jump to navigation
Jump to search
getting started |
m M7 & H7 MicroPython |
||
| (One intermediate revision by the same user not shown) | |||
| Line 2: | Line 2: | ||
# Connect USB to Power Source | # Connect USB to Power Source | ||
''That's it, you are done. If you should be seeing a blue blinky'' | |||
== mod blinky == | |||
Blink briefly with the red LED. This make it look like a cheap security camera. | |||
<pre> | |||
import pyb, time | |||
led = pyb.LED(1) | |||
usb = pyb.USB_VCP() | |||
while (usb.isconnected()==False): | |||
led.on() | |||
time.sleep(2) | |||
led.off() | |||
time.sleep(800) | |||
</pre> | |||
== main.py == | |||
You can edit the main python code by editing the <code>main.py</code> file that is accessible as a USB storage device when connected via USB. | |||
== REPL == | |||
Interactive coding can be done using the REPL. This is accessible via the USB as a serial interface. | |||
== hardware tricks == | |||
The device can be reset by shorting the RST ping to ground. | |||
Latest revision as of 06:03, 9 November 2018
Getting to blinky
[edit | edit source]- Connect USB to Power Source
That's it, you are done. If you should be seeing a blue blinky
mod blinky
[edit | edit source]Blink briefly with the red LED. This make it look like a cheap security camera.
import pyb, time led = pyb.LED(1) usb = pyb.USB_VCP() while (usb.isconnected()==False): led.on() time.sleep(2) led.off() time.sleep(800)
main.py
[edit | edit source]You can edit the main python code by editing the main.py file that is accessible as a USB storage device when connected via USB.
REPL
[edit | edit source]Interactive coding can be done using the REPL. This is accessible via the USB as a serial interface.
hardware tricks
[edit | edit source]The device can be reset by shorting the RST ping to ground.