Hi,
based on nicolas work I have developed the ADC(1..4) interface in VB.Net
See the application attached.
Now I'm working on I2C interface (you can see something in the attached project) but It doesn't still working.
Hope this can help you!
Bye
Stranet
VB.NET Sample - LED Control
Re: VB.NET Sample - LED Control
Very good work stranet. Maybe you should branch off your post to a new thread, so other users can see it right away and make use of your code.
As for the I2C, what kind of issues are you having ?
As for the I2C, what kind of issues are you having ?
Re: VB.NET Sample - LED Control
I2C is "Work in Progress".
I don't understand well on what bit I have to poll to wait for Ack.
I'm trying to understand how the onboard I2C memory works... so I can do some tests.
I'll post the code if it works.
All the help is welcome!
I don't understand well on what bit I have to poll to wait for Ack.
I'm trying to understand how the onboard I2C memory works... so I can do some tests.
I'll post the code if it works.
All the help is welcome!
Re: VB.NET Sample - LED Control
Thank you Nicolas,
If I got it right, your CFIO.dll can give us access to all GPIOs, right?
I am new in "Visual" coding, Could you please write a Visual C++/C# example for controlling GPIOs (say blinking a led that attached to one of GPIO) or at least give me some hints that shows how can I start controlling GPIOs using your dll?
Best Regards,
h4med
If I got it right, your CFIO.dll can give us access to all GPIOs, right?
I am new in "Visual" coding, Could you please write a Visual C++/C# example for controlling GPIOs (say blinking a led that attached to one of GPIO) or at least give me some hints that shows how can I start controlling GPIOs using your dll?
Best Regards,
h4med
Re: VB.NET Sample - LED Control
Hello i can´t see the attach of stranet:
Hi,
based on nicolas work I have developed the ADC(1..4) interface in VB.Net
please tell me as follows this, thanks
Hi,
based on nicolas work I have developed the ADC(1..4) interface in VB.Net
please tell me as follows this, thanks
-
- Posts: 3
- Joined: Tue Jan 11, 2011 10:59 am
Re: VB.NET Sample - LED Control
Hello, I've a WINCE 6.0 Image in witch I can use the ADC aplication, I can read the ADC on the board ( the ADC0 wired in the potenciometer ),
but I don't know how to access it from a C# ou C++ program, I've seen things like:
in C#, but the value returned by this function is -1 (INVALID HANDLE ), so I don't know if the driver is missing, it's diferent or the call is wrong,
thanks in advice,
Cristiano
but I don't know how to access it from a C# ou C++ program, I've seen things like:
Code: Select all
const UInt32 OPEN_EXISTING = 3;
const UInt32 GENERIC_READ = 0x80000000;
const UInt32 GENERIC_WRITE = 0x40000000;
const Int32 INVALID_HANDLE_VALUE = -1;
..................
hPort = CreateFile("ADC1:", GENERIC_READ | GENERIC_WRITE, 0, IntPtr.Zero, OPEN_EXISTING, 0, IntPtr.Zero);
in C#, but the value returned by this function is -1 (INVALID HANDLE ), so I don't know if the driver is missing, it's diferent or the call is wrong,
thanks in advice,
Cristiano
Who is online
Users browsing this forum: No registered users and 18 guests