Skip to content

mamin27/H616-mangopi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dont forget to add /image/star.png if you were satisfy with the software!

H616-mangopi (version 1.2)

DTS file for setting MQ-Quad / MCore-H616 board

MQ-Quad H616

Compile DTS fit to DTB binary and reboot

sudo apt-get install sunxi-tools device-tree-compiler rpi.gpio-common

cd /boot/dtb/allwinner/
dtc -I dts -O dtb -f sun50i-h616-biqu.dts -o sun50i-h616-biqu.dtb

OPi.GPIO package for H616 board (my clone of origin library)

  • current version 0.5.4 (added some not applied pull-request from origin https://github.com/rm-hull/OPi.GPIO project & my changes)
  • this version is not distributed by pypi.org, I respect owner of the project.
  • Added mangopi library
  • How to compile lib:
cd OPi.GPIO
sudo bin/make_release.sh
cd dist
pip3 install OPi.GPIO-0.5.4-py2.py3-none-any.whl
  • permission rights for your user
sudo groupadd gpio
sudo usermod -aG gpio <myusername>
su <myusername>
sudo chgrp gpio /sys/class/gpio/export
sudo chgrp gpio /sys/class/gpio/unexport
sudo chmod 775 /sys/class/gpio/export
sudo chmod 775 /sys/class/gpio/unexpor
  • test of flashing LED
./led_mq_quad.py

features:

  • I2C (/dev/i2c-1)
  • SPI
  • PWM
    • for correct using PWM install OPi.GPIO lib from this site
    • test script for managing PWM was tested at OrangePi Zero2 fan_pwm_managed script
  • GPIO INPUT/OUTPU
  • I2S0 TBD (Look at issue #1 and help with investigatio)
  • activate sensor-led TBD

Setting of orangepiEnv.txt

comet@mango:~$ cat /boot/orangepiEnv.txt
verbosity=1
bootlogo=false
console=serial
disp_mode=1920x1080p60
fdtfile=allwinner/sun50i-h616-biqu.dtb
overlay_prefix=sun50i-h616,i2c0,i2c1
rootdev=UUID=f64a1bf8-9eaf-4ea7-a699-71dd553b9872
rootfstype=ext4
usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u
comet@mangopi:/boot/dtb/allwinner$ i2cdetect -y 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:                         -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: 50 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- 62 -- -- -- -- -- -- -- -- -- -- -- -- --
70: 70 -- -- -- -- -- -- --

About

DTS file for setting MQ-Quad / MCore-H616 board

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published