On Wed, 5 Aug 2020 18:36:12 -0700 (PDT), in
gmane.comp.hardware.beagleboard.user
[email protected] wrote:

>Can anyone provide a C program that can be run in CCS that would program an 
>I2C controller on the BBB board to generate the desired clock frequency 
>signal and the required data signals on the I2C bus.
>
>
>Part 1. Program the device to generate signals to turn LED15 to full ON. 
>Should be measurable voltage from the number 15 signal pin on the servo 
>board.
>
>Part 2. Develop commands you send to PCA9685 to intialize it for the  
>correct frequency for your servo, set up a timer on the BBB to control 
>delays, and intialize the BBB User LEDs.

        The phrasing of this sounds very much like it is some sort of homework
assignment.

        Doing someone else's homework is frowned upon in many forums. The
mention of CCS also complicates matters in that CCS supports bare-board
development (using TI's SDK, I believe) and maybe Linux development.

        If running under Linux, there are native compilers which run on the
BBB, though without an IDE (especially if one hasn't installed X-Window
system). Also one can set up a cross-development environment (easiest to be
running in a desktop Linux -- set up Debian in Oracle VirtualBox if running
on a Windows system... Instructions for cross-development, including
configuring Eclipse, are in Chapter 7 of Molloy's Exploring Beaglebone 2nd
Ed [or use his Exploring Raspberry-Pi -- chapter 7 is practically
identical).

        So first: Are you talking about a bare-board (no OS) configuration or
an application to run under Linux? I don't recall anyone on the forum that
regularly works with bare-board -- there is just so much that has to be set
up just to start a program running.

        Second: Show us YOUR code and explain what doesn't seem to be working
with it. And don't submit the equivalent of

#include <stdio>
void main(argc, *argv)
{
        /* need help here */
}

We can help correct your attempts, but won't write the code for you.
Providing a link to the documentation for your peripheral board would also
have been useful.

        Heh -- I'd probably start with the out-of-stock Adafruit board, and use
Python via the Adafruit_Blinka compatibility library to use their
CircuitPython PCA9685 module.


-- 
Dennis L Bieber

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/4dd0jfd9hajh7649m43sun2j6t02ti9a1p%404ax.com.

Reply via email to