Vernier Acceleration Sensor Python: Difference between revisions

From wikiluntti
No edit summary
Line 19: Line 19:
Returns the following modes 'ref-raw', 'rgb-raw' and 'col-cal'
Returns the following modes 'ref-raw', 'rgb-raw' and 'col-cal'


==== Ref-Raw ====
==== REF-RAW ====


Not working.
Not working.


==== Rgb-Raw ====
==== RGB-RAW ====


Not working.
Not working.


==== Col-Cal ====
==== COL-CAL ====


Not working.
Not working.

Revision as of 19:43, 21 September 2020

Introduction

Python: Check the modes

#!/usr/bin/env python3
# https://sites.google.com/site/ev3devpython/

from ev3dev2.sensor import *
from ev3dev2.sensor import INPUT_1

import time

p = Sensor( INPUT_1 )
while 1:
    print( p.modes )
    time.sleep(5)

Returns the following modes 'ref-raw', 'rgb-raw' and 'col-cal'

REF-RAW

Not working.

RGB-RAW

Not working.

COL-CAL

Not working.