Search Results for

    Show / Hide Table of Contents

    Core Library


    The core library gives DUE Scripts the necessary API to access hardware. It has other software related libraries as well. These API functions are available from within DUE Scripts and runs host-less. When using a host, a library for that particular language is provided to reflect the DUE Core library. For example, when using Python, the provided Python library includes dev.Led.Set(200,800,20) which mirrors the LED API.

    API Description
    Analog Read or Write analog pins
    Beep Beep using any pin
    Button Read a button. Similar to Digital read but handles debounce
    Digital Read or write digital pins
    Distance Read ultrasonic distance sensor
    Frequency Generate frequency on a specific pin. This uses hardware PWM internally
    I2C Access the I2C bus for transferring data
    Infrared Read and decode IR remote control signal
    LCD Draw on LCD (device specific)
    LED Control the on-board LED
    NeoPixel Control smart color LEDs
    Servo Control servo motors
    SPI Access the SPI data bus
    System Functions Built-in functions
    Temp-Humidity Works with DHT sensors
    Touch Allows for capacitive touch sensing
    UART Transfer data on the UART serial port
    • Improve this Doc
    In This Article
    Back to top Copyright © 2023 GHI Electronics, LLC
    Generated by DocFX