GithubHelp home page GithubHelp logo

stefanmouv / hw Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kisvegabor/hw

0.0 1.0 0.0 141 KB

Microcontroller and PC periphery and device drivers, e.g. TFT, Touch pad, SD card etc.

License: MIT License

C 98.84% C++ 1.16%

hw's Introduction

Periphery and device drivers

This Hardware Library is written mainly for the Littlev Graphics Library. If you would like to create GUI for an embedded system you should visit its repository or website.

The repository contains some drivers for microcontroller (and PC) peripheries like:

  • GPIO
  • UART
  • SPI
  • I2C
  • TFT
  • etc

And for devices like:

  • Display controllers: e.g. SSD1963
  • Touch pad controllers: e.g. XPT2046
  • LED
  • Buzzer
  • etc

There are drivers for different microcontroller families and even for PC. You can easily change between families by modifying a define in hw_conf.h because all drivers use the same API.

Currently mainly PIC microcontrollers and PC are supported:

  • PIC24F/33E
  • PIC32MX
  • PIC32MZ
  • PC

Usage

  1. Clone the repository into the root folder of your project: git clone https://github.com/littlevgl/hw.git
  2. In your IDE add the project root folder as include path
  3. Copy hw/hw_conf_templ.h as hw_conf.h to the project root folder
  4. Delete the first #if 0 and the last #endif to enable the file
  5. Choose the hardware family by: #define PSP_... 1
  6. Enable/disable or configure the components
  7. To initialize the library #include hw/hw.h and call per_init() and dev_init()

Remark

It is not the goal of this library to create drivers for all peripheries and functions. When I use a new microcontroller and a new periphery I will add it.

If you are using the library in your project pleas write your drivers according to the existing ones and share them! :)

hw's People

Contributors

kisvegabor avatar

Watchers

 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.