Acceleration of Gravity Tilt Module for Arduino
#2
I just extracted a device tree from the Android image for LCD, to look at the LCD config... but I found also the following: some acc, gyro, light and compass sensors seem to be defined for the I2C bus... maybe try one of those?


Code:
       gsensor {            device_type = "gsensor";            compatible = "allwinner,sun50i-gsensor-para";            status = "okay";            gsensor_twi_id = <0x00000001>;            gsensor_twi_addr = <0x0000001d>;            gsensor_vcc_io = "vcc-deviceio";            gsensor_vcc_io_val = <0x00000ce4>;            gsensor_int1 = <0x00000030 0x00000007 0x00000005 0x00000006 0x00000001 0xffffffff 0xffffffff>;            gsensor_int2 = <0x00000030 0x00000007 0x00000006 0x00000006 0x00000001 0xffffffff 0xffffffff>;        };        gsensor_list {            device_type = "gsensor_list";            compatible = "allwinner,sun50i-gsensor-list-para";            gsensor_list__used = <0x00000001>;            lsm9ds0_acc_mag = <0x00000001>;            bma250 = <0x00000001>;            mma8452 = <0x00000001>;            mma7660 = <0x00000001>;            mma865x = <0x00000001>;            afa750 = <0x00000001>;            lis3de_acc = <0x00000001>;            lis3dh_acc = <0x00000001>;            kxtik = <0x00000001>;            dmard10 = <0x00000000>;            dmard06 = <0x00000001>;            mxc622x = <0x00000001>;            fxos8700 = <0x00000001>;            lsm303d = <0x00000000>;            sc7a30 = <0x00000001>; };        gyroscopesensor {            device_type = "gyroscopesensor";            compatible = "allwinner,sun50i-gyr_sensors-para";            status = "disabled";            gy_twi_id = <0x00000002>;            gy_twi_addr = <0x0000006a>;            gy_int1 = <0x00000030 0x00000000 0x0000000a 0x00000006 0x00000001 0xffffffff 0xffffffff>;            gy_int2;        };        gy_list {            device_type = "gy_list";            compatible = "allwinner,sun50i-gyr_sensors-list-para";            status = "disabled";            lsm9ds0_gyr = <0x00000001>;            l3gd20_gyr = <0x00000000>;            bmg160_gyr = <0x00000001>; };    lightsensor {            device_type = "lightsensor";            compatible = "allwinner,sun50i-lsensors-para";            status = "disabled";            ls_twi_id = <0x00000002>;            ls_twi_addr = <0x00000023>;            ls_int = <0x00000030 0x00000000 0x0000000c 0x00000006 0x00000001 0xffffffff 0xffffffff>;        };        ls_list {            device_type = "ls_list";            compatible = "allwinner,sun50i-lsensors-list-para";            status = "disabled";            ltr_501als = <0x00000001>;            jsa1212 = <0x00000000>;            jsa1127 = <0x00000001>;            stk3x1x = <0x00000000>;        };        compasssensor {            device_type = "compasssensor";            compatible = "allwinner,sun50i-compass-para";            status = "disabled";            compass_twi_id = <0x00000002>;            compass_twi_addr = <0x0000000d>;            compass_int = <0x00000030 0x00000000 0x0000000b 0x00000006 0x00000001 0xffffffff 0xffffffff>;        };        compass_list {            device_type = "compass_list";            compatible = "allwinner,sun50i-compass-list-para";            status = "disabled";            lsm9ds0 = <0x00000001>;            lsm303d = <0x00000000>; };
Come have a chat in the Pine IRC channel >>
  Reply


Messages In This Thread
RE: Acceleration of Gravity Tilt Module for Arduino - by xalius - 07-03-2016, 03:47 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  RPi.GPIO python module for Pine A64/A64+ aquilegia 99 221,279 12-15-2025, 07:42 AM
Last Post: freidepiter
  Porting Arduino project advice primeminister 1 4,773 07-14-2016, 05:16 PM
Last Post: MarkHaysHarris777

Forum Jump:


Users browsing this thread: 2 Guest(s)