VB.NET Sample - LED Control

stranet
Posts: 4
Joined: Thu Dec 24, 2009 7:48 am

Re: VB.NET Sample - LED Control

Post by stranet » Thu Feb 18, 2010 1:34 am

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

nicolas
Posts: 162
Joined: Sun Jun 07, 2009 4:32 pm

Re: VB.NET Sample - LED Control

Post by nicolas » Thu Feb 18, 2010 12:07 pm

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 ?

stranet
Posts: 4
Joined: Thu Dec 24, 2009 7:48 am

Re: VB.NET Sample - LED Control

Post by stranet » Fri Feb 19, 2010 6:30 am

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!

h4med
Posts: 1
Joined: Sun Apr 18, 2010 10:04 pm

Re: VB.NET Sample - LED Control

Post by h4med » Sun Apr 18, 2010 10:13 pm

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

ggrillo
Posts: 1
Joined: Tue Nov 30, 2010 12:16 pm

Re: VB.NET Sample - LED Control

Post by ggrillo » Tue Nov 30, 2010 12:23 pm

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

Gaubtellulk
Posts: 1
Joined: Fri Dec 24, 2010 10:52 am

web site search eng

Post by Gaubtellulk » Fri Dec 24, 2010 12:59 pm

seo elite

cristianowa
Posts: 3
Joined: Tue Jan 11, 2011 10:59 am

Re: VB.NET Sample - LED Control

Post by cristianowa » Tue Jan 11, 2011 11:10 am

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

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest