<< return to Pixycam.com

User Tools

Site Tools


wiki:v2:python

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
wiki:v2:python [2021/12/30 13:02]
kees Added set_next_turn() and set_default_turn() and removed some typos
wiki:v2:python [2021/12/30 14:48] (current)
kees Some minor changes
Line 48: Line 48:
 page. page.
  
-==== API ====+==== pixycamev3 ​====
  
 To make programming more easy for you, we developed a Python API to use Pixy2 To make programming more easy for you, we developed a Python API to use Pixy2
-on the EV3. The same API can be used with both Python3 and MicroPython. The+on the EV3. To use this API you have to install module ''​pixycamev3''​. 
 +The same API can be used with both Python3 and MicroPython. The
 only difference is the way you install the API. When installed, using our only difference is the way you install the API. When installed, using our
 API with Python3 is exactly the same as with MicroPython. But first you have API with Python3 is exactly the same as with MicroPython. But first you have
Line 74: Line 75:
 PixyMon and detach Pixy2 from your computer. PixyMon and detach Pixy2 from your computer.
  
-==== Installing ​Python API ====+==== Installing ​pixycamev3 ​====
  
 This Python API works both with Python3 and MicroPython. There are two ways This Python API works both with Python3 and MicroPython. There are two ways
Line 125: Line 126:
 in your ''​pixycamev3''​ folder. in your ''​pixycamev3''​ folder.
  
-Your project folder structure should look now like this:+Your project folder structure should look like this:
  
 <​code>​ <​code>​
Line 137: Line 138:
 the file you're ready to program! the file you're ready to program!
  
-==== Using Python API ====+==== Using pixycamev3 ​====
  
 The main object you will need is the ''​Pixy2''​ class. This object contains all The main object you will need is the ''​Pixy2''​ class. This object contains all
wiki/v2/python.1640869338.txt.gz · Last modified: 2021/12/30 13:02 by kees