Main Site Documentation

Panda2 with connectshield using e-block button (newbie)


#1

Hi guys,

since a few days I am “playing” with the FEZ Ultimate kit (Panda2) and I ran into a problem with the e-block button.
when I try to run the provided Driver Example Code, the compiler is telling me that a assembly is missing when I type

 FEZ_Components.Button myButton = New FEZ_Components.Button(FEZ_Pin.Digital.Di4) 

.
In the example code the assembly

 using GHIElectronics.NETMF.FEZ 

is used but I do not have that assembly instead I have

 FEZPanda_II_GHIElectronics.NETMF.FEZ 

What I like to do is use a button using the interrupt feature.
Can anyone please tell me what I am doing wrong.

Thanks


#2

Did you add the needed dlls? GHIElectronics.NETMF.Hardware.dll


#3

The using statement refers to a namespace, not necessarily an assembly. The first thing to check is if your installed SDK matches the Panda’s firmware. Also, please provide the specific error message. If they match, lookup what assembly contains the namespace in question and make sure it is referenced.

[edit] Gus did the lookup for you…


#4

I did follow the setup instructions in the FEZ tutorial and beginner guide.
I can select a lot of Assemblies from the add reference form, but not the specific one


#5

thanks for the quick reply:
I checked the SDK and they match both are 1.0.17
The error message wnhen I start typing

 FEZ_Components.Button 

is "the type or namespace name 'FEZ_Components’could not be found (are you missing a using using directive or an assembly reference?)


#6

Ah, not a reference or assembly issue at all. The “driver” code for the various eBlocks is located on the Downloads tab of their respective pages in the store. They are not contained in any precompiled library. You can find the code for the button here http://www.ghielectronics.com/downloads/FEZ/Component/FEZ_Components_Button.cs

BTW - Welcome to the forum!


#7

Many thanks, I hope I will learn a lot reading the forum.

It is as a newbie a little confusing for me, sorry.
Do I first have to copy the code from FEZ_Components_Button.cs into my Program or do I have to copy the file FEZ_Components_Button.cs into my Application?

This is just my third day with C# and Panda.

I was able to follow and built the other examples from the beginnersguide, but this one is a struggle for me.

Dick


#8

Add a new class file to your VS project and paste in that code, or download the file and add it to your project.


#9

Many thanks ransomhall :-[

Now I do understand what to do and was able to test this e-block button.

Do you know if the e-block schematic disgrams are available?


#10

Take a look at this thread http://tinyclr.com/forum/2/4135/ . Also a good idea to get in the habit of searching the forum before asking questions like this. :wink: