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
Single-Board Computers
  • Products
  • Dev Tools
  • Single-Board Computers
  • More
  • Cancel
Single-Board Computers
Forum How do I address the gpio pins directly through bash or python?
  • Blog
  • Forum
  • Documents
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Single-Board Computers to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 2 replies
  • Answers 1 answer
  • Subscribers 57 subscribers
  • Views 809 views
  • Users 0 members are here
  • gpio
  • maaxboard
Related

How do I address the gpio pins directly through bash or python?

pmansvelder
pmansvelder over 5 years ago

I am currently roadtesting the maaxboard, and i have succesfully used the gpio pins to connect i2c devices; how can I address the gpio pins directly? I want to do the following:

- use a gpio pin as a digital input or output

- use a gpio pin for pwm, if possible

- use a gpio pin for 1-wire sensors

I have made some progress by compiling the wire device driver, including the w1_gpio driver, but I am at a loss how to configure it. In similar devices (e.g. Raspberry PI) this is done by means of overlays, but these aren't available as yet.

Has anyone made any progress in this area?

  • Sign in to reply
  • Cancel

Top Replies

  • jafoste4
    jafoste4 over 5 years ago +1 suggested
    Hi, This is how we are currently reccomending accessing and controling the GPIO. Let me know if you need further help! Using the GPIOs. -Josh
  • pmansvelder
    pmansvelder over 5 years ago in reply to jafoste4 +1 verified
    Hello Josh, this was indeed the answer I was looking for, as far as my first question goes; I had already stumbled on this method by digging in my own memory on using the raspberry pi in the early days…
Parents
  • jafoste4
    0 jafoste4 over 5 years ago

    Hi,

     

    This is how we are currently reccomending accessing and controling the GPIO. Let me know if you need further help!

     

    Using the GPIOs.

     

    -Josh

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Reply
  • jafoste4
    0 jafoste4 over 5 years ago

    Hi,

     

    This is how we are currently reccomending accessing and controling the GPIO. Let me know if you need further help!

     

    Using the GPIOs.

     

    -Josh

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Children
  • pmansvelder
    0 pmansvelder over 5 years ago in reply to jafoste4

    Hello Josh, this was indeed the answer I was looking for, as far as my first question goes; I had already stumbled on this method by digging in my own memory on using the raspberry pi in the early days before WiringPi.

    I am still looking for a way to do PWM on a GPIO pin, and a method of how to implement the 1-wire protocol on a GPIO pin.

     

    Thanks for the help!

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Reject Answer
    • 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