Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
Accel.py
All_in_One.py
Ambient_Light.py
Analog_Differential.py
Analog_Single_Ended.py
Button_Event.py
Button_Loop.py
Button_to_Relay.py
Buzzer.py
Digital_Port_In_Out.py
Gesture_Event.py
Gesture_Loop.py
IRRemote_NEC.py
Photocoupler_Event.py
Photocoupler_Loop.py
Proximity.py
RGB_Light.py
ReadMe.md
Relay_Toggle.py
Tilt_Detect.py

ReadMe.md

Python Samples

This directory includes Python samples for Turta IoT HAT 3.

Index

  • Accel.py: Demonstrates reading the 3D acceleration data.
  • All_in_One.py: Demonstrates most of the IoT HAT's functionality together.
  • Ambient_Light.py: Demonstrates reading the ambient light data.
  • Analog_Differential.py: Demonstrates measuring differential analog inputs from analog ports.
  • Analog_Single_Ended.py: Demonstrates measuring single-ended analog inputs from analog ports.
  • Button_Event.py: Demonstrates reading onboard button press state using interrupt.
  • Button_Loop.py: Demonstrates reading onboard button press state.
  • Button_to_Relay.py: Demonstrates switching the relays with button press.
  • Buzzer.py: Demonstrates using the piezo sounder.
  • Digital_Port_In_Out.py: Demonstrates digital port read and write.
  • Gesture_Event.py: Demonstrates detecting hand gestures using GPIO interrupt.
  • Gesture_Loop.py: Demonstrates detecting hand gestures.
  • IRRemote_NEC.py: Demonstrates sending infrared remote controller messages using NEC protocol.
  • Photocoupler_Event.py: Demonstrates reading input states of photocoupler using interrupt.
  • Photocoupler_Loop.py: Demonstrates reading photocoupler input states.
  • Proximity.py: Demonstrates measuring proximity.
  • Relay_Toggle.py: Demonstrates toggling the solid state relays.
  • RGB_Light.py: Demonstrates reading RGB light.
  • Tilt_Detect.py: Demonstrates detecting tilt without using I2C bus.

Running the Python Samples

  • Copy the sample code to your Raspberry Pi.
  • Install the libraries with 'pip3 install turta-iothat3' command.
  • Run the sample with 'python3 <Sample_Name>.py' command.
  • Exit from the sample using CTRL+C or ^C key.

Documentation

Visit docs.turta.io for documentation.

You can’t perform that action at this time.