Page 2 of 2

Re: VB.NET Sample - LED Control

Posted: Thu Feb 18, 2010 1:34 am
by stranet
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

Re: VB.NET Sample - LED Control

Posted: Thu Feb 18, 2010 12:07 pm
by nicolas
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 ?

Re: VB.NET Sample - LED Control

Posted: Fri Feb 19, 2010 6:30 am
by stranet
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!

Re: VB.NET Sample - LED Control

Posted: Sun Apr 18, 2010 10:13 pm
by h4med
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

Re: VB.NET Sample - LED Control

Posted: Tue Nov 30, 2010 12:23 pm
by ggrillo
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

web site search eng

Posted: Fri Dec 24, 2010 12:59 pm
by Gaubtellulk
seo elite

Re: VB.NET Sample - LED Control

Posted: Tue Jan 11, 2011 11:10 am
by cristianowa
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:

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