Code Monkey home page Code Monkey logo

bbq10pmod_module's Introduction

bbq10pmod Kernel Module

Raspberry Pi

Wiring

Pi          -   Module
3V3         -   3V3
GND         -   GND
GPIO2/SDA1  -   SDA
GPIO3/SCL1  -   SCL
GPIO11      -   INT

Installation

Installing this Kernel Module on a Raspberry Pi is quite straight forward.

  • sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install git raspberrypi-kernel-headers
  • git clone https://github.com/arturo182/bbq10pmod_module.git && cd bbq10pmod_module
  • make && make dtbo
  • sudo cp bbq10pmod.ko /lib/modules/4.19.57+/kernel/drivers/i2c/bbq10pmod.ko
  • sudo cp i2c-bbq10pmod.dtbo /boot/overlays/
  • sudo sh -c "echo dtoverlay=i2c-bbq10pmod >> /boot/config.txt"
  • sudo sh -c "echo bbq10pmod >> /etc/modules"
  • sudo depmod
  • sudo reboot

After these steps you should have the PMOD working on your Raspberry Pi. You can check this via dmesg:

[    8.249265] i2c /dev entries driver
[    8.337603] bbq10pmod: loading out-of-tree module taints kernel.
[...]
[   16.524469] bbq10pmod_probe version: 0x02
[   16.536031] input: bbq10pmod as /devices/platform/soc/20804000.i2c/i2c-1/1-001f/input/input0

bbq10pmod_module's People

Contributors

arturo182 avatar berkutta 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.