Coder Social home page Coder Social logo

luckyresistor / hal-mcp230xx Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 37 KB

HAL driver for the Microchip MCP23008 and MCP23016 I/O expander chips.

License: GNU General Public License v3.0

C++ 99.31% CMake 0.69%
hal api driver cpp hardware embedded layer mcp23008 mcp23017 expander-chips

hal-mcp230xx's Introduction

Microchip MCP230xx Hardware Access Layer

This is a HAL for the Microchip MCP23008 and MCP23016 I/O expander chips. It builds upon the HAL core layer system.

See "HAL-feather-m0" for details how to use the HAL system in your projects.

How to use this HAL

To use this HAL, include this repository as a submodule in your project. The submodule must be a subdirectory hal-mcp230xx in your Arduino project directory as shown below:

YourProject/
	YourProject.ino
	src/
		Application.hpp
		Application.cpp
		hal/ <-- The core HAL submodule
		hal-mcp230xx/ <-- This repository as submodule
			[files]

Make sure you also include the core HAL as submodule in your project. This code builds upon the WireMaster system.

Alternatively, just copy the directory in your project, if you do not wish to use GIT for updates of this library. Still, you have to copy the directory structure from above.

The src subdirectory is important! Place all your sources, except the .ino file in the src directory. All hal layer directories have to be placed below the src directory. The Arduino environment will only compile cpp files inside of the src subdirectory. If the hal* directories are placed outside of the src directory, the implementations of the are not compiled into the project.

cd YourProject/
git submodule add [email protected]:LuckyResistor/HAL-feather-m0.git src/hal
git submodule add [email protected]:LuckyResistor/HAL-mcp230xx.git src/hal-mcp230xx

Status

This library is a work in progress. It is published merely as an inspiration and in the hope it may be useful.

License

Copyright 2019 by Lucky Resistor.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.

hal-mcp230xx's People

Contributors

luckyresistor avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.