Greetings; I successfully followed the instructions at
https://learn.adafruit.com/adafruit-cri ... stallation and ran its code
Code: Select all
from adafruit_crickit import crickit
print(crickit.touch_1.value)
print(crickit.touch_1.value)
Where do I find the API to view all the methods of touch_1? Is it
https://circuitpython.readthedocs.io/pr ... t/api.html ? ...But it shows adafruit_crickit.CrickitTouchIn ... raw value....value ? How does a newbee get from adafruit_crickit.CrickitTouchIn ...value.... to touch_1.value? In other words, if I want to use other devices (sensors, LEDS,etc) , is this the correct API to view properties (int or boolean return value...all possible methods) for the RPi CRICKIT HAT?
Example , from
https://learn.adafruit.com/make-it-move ... cuitpython, I modified the code to have....
Code: Select all
#
from adafruit_crickit import crickit
Create one motor on seesaw motor port #1
motor = crickit.dc_motor_1 #
while True:
if crickit.touch_2.value:
print("Button A pressed, go!")
motor.throttle = 1.0 # full speed!
So, for example, what are other options besides throttle, does that Raspberry Pi CRICKIT HAT API exist ?