
Ref: insmod /mvs/modules/ak_gpio_i2c.ko gpio_sda=7 gpio_scl=6 (not works !!!) Even inserting the drivers, no new entries appear. These files exist in the original firmware:Īlso after several attempts to use the existing drivers, I couldn’t either. But I couldn’t compile a driver that enabled this function.ĭoing a reverse engineering, I saw that there were some calls (insmod) for i2C drivers, but it wasn’t exactly for this camera model, because it doesn’t have motors. This way it is also safer, avoiding burning the camera if you do something wrong.Īs the camera has a second UART marked on the PCB (RX2, TX2), my first attempt was this. With the need to be able to have more IOs, I was looking for an alternative like maybe connecting an Arduino Nano and this being my GPIO “bridge”. This is a series of tutorials, you can see the topic list here Please note that I have already compiled this driver, and it is available in the BuildRoot versionĭespite this being a market hardware, I ended up finding several GPIOs that can be used for general purpose, which makes it useful for developing some range of applications. how to implement i2C software and 3 using the example of IO Expander.

In this tutorial I will demonstrate how to 1. Nothing too amazing, help improve this example!!

Run: anyka/build/anyka_build.sh (it will call menuconfig) Install drivers insmod fb.koĮcho "ssd1306fb 0x3c" > /sys/bus/i2c/devices/i2c-1/new_device

Include new driver in Kernel changing this files: If you have doubts, read this post that explains how to add new items in the kernel. Hack IPCAM – Compiling I2C Software Kernel Driver For the lazy, pre-compiled version:Īnyka_v380ipcam_experiments/tree/master/kernel/i2c_ssd1306_fb/ssd1306fb
