DLN-series adapters are supplied with a variety of examples that cover almost every aspect of development. They are not all designed to be impressive when you run them, but their source code is carefully written to show good programming practices.
Software examples source code is included into DLN Setup Package, which can be downloaded from Downloads page.
This documentation lists complete, runnable code samples and applications that correspond to different DLN-series adapters features. All examples are supplemented with detailed source code description and tips.
We also provide a number of ready to use applications. You can evaluate the DLN-series adapter with these applications or use them during your daily work. Most of these applications are also supplemented with the source code in a variety of programming languages.
See anything missing? Please send an e-mail to email@example.com, where we’re collecting suggestions for future DLN code samples, and we’ll do our best to make it available!
To help you to quickly find the appropriate example, we divided them into the following categories:
- SPI master interface examples.
- SPI slave interface examples.
- 25 series SPI Flash programming examples.
- AT45DB series SPI DataFlash programming examples.
- I2C master interface examples.
- I2C slave interface examples.
- 24 series I2C EEPROM programming examples.
- Single GPIO pin usage examples.
- Configuring and using of multiple GPIO pins examples.
- ADC examples.
- UART examples.
- PWM examples.
- Pulse and frequency counter examples.
- LEDs examples.
Generic examples show how to connect to the DLN series adapter from a variety of programming languages, get device and software version, work with several DLN series adapters simultaneously.
Supported Programming Languages and Frameworks
Diolan is committed to making all of our technologies equally accessible from different programming languages. It doesn't matter what framework or technology you use. You can easily interface DLN-series adapter in the familiar surrounding.
If you need an example for additional programming language of framework, just send us an email to firstname.lastname@example.org. New samples are added frequently so check back often.
C/C++ examples are available for the following frameworks and technologies:
- command line C and C++ applications.
- MFC C++ GUI examples.
- cross-platform QT C++ GUI examples.
- .NET C++/CLI examples.
C# and VB.NET examples are available as Windows Form Applications.
Most of the examples can work with all DLN-series adapters. They check if the specific feature is supported by the selected adapter and enables or disables the corresponding controls.