[fpc-pascal] Pascal Neopixels

R0b0t1 r030t1 at gmail.com
Mon Jul 30 02:00:59 CEST 2018


On Sunday, July 29, 2018, Anthony Walter <sysrpl at gmail.com> wrote:
> Thanks Michael, that's some good information. I'll poke around with
Pascal using the information you provided and see if I can turn an LED
on/off, set its color and brightness, and whatever else then post back here
with the results.
> If anyone else cares to chime in with advice I'd much appreciate your
insights.

There are device nodes you can interact with to drive the I2C/SPI
peripherals. This will be cleaner and more portable than interacting with
the registers yourself.

There may also be C libraries wrapping the details of the device nodes.
Creating headers for and calling that code may or may not save you any
work. Some of those libraries, like the devicemode USB one, are very poorly
written.

Should you not be able to open the device you may nneed to be root. Also
check that a "platform" driver hasn't already claimed it (like for power
management bus).

Cheers,
   R0b0t1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20180729/ac1bb67f/attachment.html>


More information about the fpc-pascal mailing list