Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Device driver implementation for PCA9539 I/O Expander...

PCA9539 GPIO Expander I/O NXP Driver I2C

  • Please log in to reply
No replies to this topic

#1 mbrossett

mbrossett

    Advanced Member

  • Members
  • PipPipPip
  • 46 posts

Posted 23 March 2014 - 10:16 PM

My goal was to create an easy to use device driver for the PCA9539 16-bit GPIO expander IC. However, I also wanted to make it generic so that could be used with other future gpio expander driver implementations.

 

I created a simple interface that each device driver class (i.e. PCA9539) shall implement. I also created a generic Gpio class used to interface with the device driver(s).

 

I chose to do it this way to to make it easy to use in the main routine. I am not a software engineer by trade, so any advice would be much appreciated. Any thoughts, comments, ideas to improve?

 

Attached Files







Also tagged with one or more of these keywords: PCA9539, GPIO, Expander, I/O, NXP, Driver, I2C

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.