Hardware Reference
In-Depth Information
On the server display (the SSH connection), you can also check the coordinates for
the LED that is currently set.
Jumping into the code
When it is running on BeagleBone, the unique purpose of a server is to wait for the
incoming data. If you intend to modify the server's code—and I hope you will—be
warned that in order to keep the example simple, the code doesn't check the viability
of the data sent from the client.
Description of the data packet
Each time the server receives data, it will look for the following three values:
• The X position
• The Y position
• Color
If you want to expand this format, you'll need to apply modifications on both the
server and client sides.
Describing the server code
As soon as the server receives a data packet, it will transcode it into I2C, then be able
to address each LED individually.
So, functionally speaking, the server can be seen as a "remote and translator" between
the client application and each LED.
Now, let's dive into the main parts of the source:
The preceding lines of code state that the required libraries (that is, Adafruit) are not
in the standard path, but they can be found in the directory upwards. That way, if a
new version is available, you just have to retrieve it ( git pull ), and you won't have
to copy/paste into directories, as it's made transparent to you.
 
Search WWH ::




Custom Search