Re: k8055 c++ program help
Recently I've managed to program my own code into K8055N board microcontroller (PIC18F24J50). I also developed my own DLL in C++ which can interface to C++ or VB or any other applications. Of course, I could use the Velleman's DLL, but I get whole more functionalities from my firmware (like 10-bit A/D conversion and access to 16 analog input channels). However, if you would still like to use the original DLL in C++ programs, I don't see a problem. It has similar interface to my DLL. Here is an example of my C++ applicytion calling DLL.
Here is an example:
delaration:
[DllImport("k8055d.dll" , CharSet = CharSet::Ansi)] extern "C" int OpenDevice(int CardAddress);
use in program:
OpenDevice(0);
Re: k8055 c++ program help
The example on how to use my library is a little different because I uset .NET technology. You must add the library onto the project through project properties and then declare namespace:
using namespace SVLib_PIC18F24J50;
all the rest si simple:
SVPICAPI board;
board.Open(0xEE01);
board.SetDigitalOutputs(255);