Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: NeoPixelI2cSlave NeoPixelI2cSlave
neopixel_string_factory.cpp
00001 #include "neopixel_string_factory.h" 00002 00003 NeoPixelString * NeoPixelStringFactory::createNeoPixelString(PinName spi_pin, unsigned int length) { 00004 // Create a temporary DigitalIn so we can configure the pull-down resistor. 00005 // (The mbed API doesn't provide any other way to do this.) 00006 // An alternative is to connect an external pull-down resistor. 00007 DigitalIn(spi_pin, PullDown); 00008 00009 return new NeoPixelString(spi_pin, length); 00010 }
Generated on Fri Jul 15 2022 00:27:27 by
1.7.2