This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Batter Level Indicator in AM335x EVM

Hi ,

I am using a custom board based on AM335x EVM. In Matrix GUI i want to show the battery level in the desktop view like in mobiles.

Is there any way to find that.

I have found the procedure read the battery level in file system via ADC. I just want to show in it Matrix GUI.

Regards

Balaji

  • Hi All,

    Now i can able to display contents in the Matrix GUI. I edited the index.php and menubar.php.

    Now i need to get the data every 10 seconds or lesser. I used the java scripts  but its not working.

    Here is the code i tried

    in /menubar.php

    <script type="text/javascript">
    var auto_refresh = setInterval(
    function ()
    {
    $('#load_tweets').load('battery.php').fadeIn("slow");
    }, 10000);
    <div id="load_tweets"> </div>
    </script>

     

    in index.php

    <script type="text/javascript" src="/javascript/jquery.min.js"></script>

    please help me to go further. I referred the following website 
    http://www.9lessons.info/2009/07/auto-load-refresh-every-10-seconds-with.html

    regards
    Balaji