GPIO driver for Digital Outputs
Introduction
The GPIO driver for Digital Outputs is used to set the digital level of a selected pin on the Quantum Builder Base. The selected pin includes an optional initial value.
Driver Parameters
The GPIO driver for Digital Inputs has two parameters that have to be configured:
Pin
Any GP pin on the Builder Base if not already used
Mode
This is the initial output mode of the channel
Possible Configurations
High: The channel has a logic level of 1 at initialization
Low: The channel has a logic level of 0 at initialization
Wiring
Example
The GP0 pin is connected to the LED directly. The resistor limits the current but it is not really necessary because the Builder Base limits the GP pins current to 20mA.
Breadboard
Schematic
Used Pins
Used Pins | Description |
---|---|
GND | The ground potential for the assembly |
GP0 (can be any GP pin) | The GP output pin |
How to write an App
Navigate to the App Builder and create a new application. You can find the “Digital Out” code object under the “Hardware” Tab in the object drop down menu on the left, or you can also use the search bar.
Drag the “Digital Out” Object onto the canvas.
Next, locate the “Button” Object under the Interface tab and drag it onto the canvas.
Finally, connect the “State” port from the Digital Out Object to the “State” port on the Button Object and save your application.
How to create a firmware
Navigate to the Firmware Builder and create a new firmware file.
Click the “+ Add Hardware” button which will open a modal window. Scroll down in the list to find the “Generic” section and select the “Digital Out” hardware option.
Give your device a name, and click “Add Device”
Next, select the “GPIO” driver under the driver dropdown menu, set the out Pin and the mode.
For this example we select:
Pin: GP0
Mode: Initially low
You may now save your firmware file and upload it to one of your clients.
Supported Hardware
LEDs
Relays
Most anything that can receive a digital signal
Downloads
Apps
Firmware
Assets