Visasic 2008 with GPIO, Buttons and LEDS

dreambox
Hi,
We are currently develloping a home automation system on the mini2440.
Communication over LAN and client/server is already working but...
Does anyone have a simple sample code in Visual Basic for controlling the
hardware IO?

Like 
if button1 = true
     LED1 = on
end if

If anyone is interested for develloping together and swap code please send
me a email
Thanks in advance


Alex

dreambox
I ment Visual Basic 2008 of course....

Help? Anyone?

michael
Maybe this topic is helpful:
http://www.friendlyarm.net/forum/topic/143

georg
Attachment: mini2440_vb_samples.zip (178.17 KB)
Here are some VB.Net examples (LED, ADC, Serial) from eSky-SH forum:
http://www.esky-sh.com/bbs/viewtopic.php?f=15&t=163

dreambox
Hello Michael,

Thanks for the respond, this is in C and I am not so familiar with c...

Alex

dreambox
Hello George,

I had already tryed this program on wince 5 and 6 with framework 3.5, but I
get an error :
Missingmethodexception
Culture=neutral Publickeytoken=null
system.windows.forms.button.onclick(eventargs e)
system.windows.forms.control._internalwinproc(wm wm,int32 wparam,int32
lparam)
mini2440_sample_led.form1.main()

wince in the english and chines version

A simple example is enough: like push a button and one led goes one.
Thats all

Alex

Mohan
Hello Dreambox

Try to compile on framework 2.0. i have done that and it works fine.
  wince 5.0 will not have framework 3.5

Cecep Sujana
Hi, I am looking for example on how to use the GPIO with WinCe 6 and Visual
Basic on Mini2451. I just have for Mini2440 when i use for Mini2451 with
changing few item there is no work. 
Does anybody knows how to use GPIO on Mini2451?