element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum Mux Shield error on example
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 7 replies
  • Subscribers 393 subscribers
  • Views 572 views
  • Users 0 members are here
  • mux
  • shield
  • muxshield
  • arduino
Related

Mux Shield error on example

Former Member
Former Member over 10 years ago

Hello everyone,

I've bought a Mux Shield II and I'm trying to test it on an Arduino Mega 2560.

 

I've downloaded the libary and put in libraries folder just exactly how it's explained into User Guide,

 

The error is in the initializing  of the shield:

 

image

How you can see from the image, the shield is not even recognized as type of variable.

In userGuide I can find:

image

I've also tried to implement:

MuxShield() muxShield;

using the parentesys but I got the same error.

 

Can someone help me?

Thank you very much!!!

  • Sign in to reply
  • Cancel

Top Replies

  • Robert Peter Oakes
    Robert Peter Oakes over 10 years ago in reply to bobcroft +1
    My experience with having a library in twice is it starts to give errors but not stating the real problem, I cannot remember the exact error and im not in a position to try right now Suffice to say… don…
  • Former Member
    Former Member over 10 years ago in reply to Robert Peter Oakes +1
    Thank you all guys, I removed the double library folder and just put it into Programs> Aduino>libraries Then I REMOVED THE FOLDER "_MACOSX".... So from: Programs> Aduino>libraries>MuxShield>_MACOSX MuxShield…
Parents
  • bobcroft
    bobcroft over 10 years ago

    Alessandro,

                        are you certain you decompressed the library before you installed it?  The error you are getting seems to indicate that your code cannot find the library.  I would uninstall both versions and then re-install from scratch.  I am not certain how the double library set up would work as I have never done it.  I am not certain of the precedence the Ardino IDE and tool chain give to library locations but I have had problems with libraries clashing when they contains similarly named files.  i.ei the library can see two files with the same name within the collective libraries folder.  On my set up I have a folder under the C:\ directory called Arduino sketches, under that directory is another one called libraries.  That works OK for me.  I use Arduino IDE version 1.5.8 and that is under the Windows programs86 directory.

     

    If you are certain the library is installed properly then I would check the names in the header (.h) file for the library.

     

    I hope that helps

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • bobcroft
    bobcroft over 10 years ago

    Alessandro,

                        are you certain you decompressed the library before you installed it?  The error you are getting seems to indicate that your code cannot find the library.  I would uninstall both versions and then re-install from scratch.  I am not certain how the double library set up would work as I have never done it.  I am not certain of the precedence the Ardino IDE and tool chain give to library locations but I have had problems with libraries clashing when they contains similarly named files.  i.ei the library can see two files with the same name within the collective libraries folder.  On my set up I have a folder under the C:\ directory called Arduino sketches, under that directory is another one called libraries.  That works OK for me.  I use Arduino IDE version 1.5.8 and that is under the Windows programs86 directory.

     

    If you are certain the library is installed properly then I would check the names in the header (.h) file for the library.

     

    I hope that helps

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • Robert Peter Oakes
    Robert Peter Oakes over 10 years ago in reply to bobcroft

    My experience with having a library in twice is it starts to give errors but not stating the real problem, I cannot remember the exact error and im not in a position to try right now

     

    Suffice to say… don’t do it and simply renaming the folder that one of the libraries is in will not fix the problem

     

    You need to completely remove it from its search paths

     

    Peter

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 10 years ago in reply to Robert Peter Oakes

    Thank you all guys,

    I removed the double library folder and just put it into Programs> Aduino>libraries

    Then I REMOVED THE FOLDER "_MACOSX"....

    So from:

         Programs> Aduino>libraries>MuxShield>_MACOSX

                                                                      MuxShield

     

    It got:

          Programs> Aduino>libraries>MuxShield

     

    Now the sketch works... Thank you very much all!

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube