This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Requires Arduino Joystick Library https://github.com/MHeironimus/ArduinoJoystickLibrary | |
#include <Joystick.h> | |
const int8_t sw_1 = 18; | |
const int8_t sw_2 = 4; | |
const int8_t sw_3 = 6; | |
//Joystick_ Joystick; | |
Joystick_ Joystick(JOYSTICK_DEFAULT_REPORT_ID, | |
JOYSTICK_TYPE_JOYSTICK, 4, 0, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SPI.h> | |
#include <Adafruit_GFX.h> | |
#include <Max72xxPanel.h> | |
int pinCS = 10; // Attach CS to this pin, DIN to MOSI and CLK to SCK (cf http://arduino.cc/en/Reference/SPI ) | |
int numberOfHorizontalDisplays = 4; | |
int numberOfVerticalDisplays = 1; | |
byte button_1 = 5; | |
byte button_2 = 4; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
LJ - 07.30 - sine_wave_DAC0.lua | |
This script creates a rudimentary sine wave on DAC0. | |
Components | |
---------- | |
- LabJack T4 | |
- Oscilloscope |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
LJ - 09.50 - blink_LED_FIO5.lua | |
This script shows how to control an LED with FIO5 with a Lua script. | |
Components | |
---------- | |
- LabJack T4 | |
- LED |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
LJ - 09.60 - blink_COMM_STATUS_LEDs.lua | |
This script shows how to control an LabJack T4 COMM STATUS LED using Lua. | |
Components | |
---------- | |
- LabJack T4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
LJ - 09.70 - voltage_follower_verbose.lua | |
This script shows how to control an LED with FIO5 with a Lua script. | |
Components | |
---------- | |
- LabJack T4 | |
- Voltmeter/Multimeter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
LJ - 09.80 - counter_no_debouncing.lua | |
This program demonstrates how to use digital lines as simple counters. | |
This script is a simplified version of the one at | |
https://labjack.com/support/software/examples/lua-scripting/counter-examples/23-counters | |
This script demonstrates how to create a simple counter on FIO4. | |
Components | |
---------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
LJ - 09.90 - counter_with_debouncing.lua | |
This program demonstrates how to configure counters, with debounce, using DIO | |
channels. The debounce time for each counter will be between debounceInt and | |
2*debounceInt milliseconds. The debounce time is determined by the duration | |
of the interval and when in the interval the first input is received. | |
Original script: | |
https://labjack.com/support/software/examples/lua-scripting/counter-examples/23-counters-debounce |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
LJ - 09.100 - convert_AIN_with_function.lua | |
This program demonstrates how to use a formula to scale the voltage | |
measured on AIN0. | |
Components | |
---------- | |
- LabJack T4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
LJ - 10.30 - AIN0_read.py | |
This script shows how to read voltage from AIN0. | |
Components | |
---------- | |
- LabJack T4 | |
- Potentiometer |
NewerOlder