how to write on RTC using i2c in omega2



  • how to write on RTC using i2c in omega2, i am unable to find RTC address
    Confused in :
    RTC Device Address
    Register Address where to read/write

    These all i want to do on Omega2 using python-pyonionI2C through i2c bus....



  • @Arshad-Alam

    What do you get when you run i2cdetect -y 0

    It should give you a list of devices and their addresses like so:

         0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
    00:          -- -- -- -- -- -- -- -- -- -- -- -- -- 
    10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
    20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
    30: 30 31 32 33 34 35 36 37 -- -- -- -- -- -- -- -- 
    40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
    50: 50 51 52 53 54 55 56 57 58 59 5a 5b 5c 5d 5e 5f 
    60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
    70: -- -- -- -- -- -- -- --                      
    
    
    Identify the ones you know are connected and the one you cannot identify will be the RTC.
    
    If you are thinking the Omega has an RTC built in, then you are mistaken. You would need to hook one up to the i2c bus to be able to use one.


Looks like your connection to Onion Community was lost, please wait while we try to reconnect.