Numerous mods for ws2812b to no avail.

Former-commit-id: 1fda06d3df5e5394ff23277e1361ab1dc35c3205
This commit is contained in:
T. van der Zwan
2014-01-27 19:15:04 +00:00
parent af08b9b5d0
commit 0047b0de56
4 changed files with 21 additions and 18 deletions

View File

@@ -6,7 +6,7 @@
#include "LedDeviceWs2812b.h"
LedDeviceWs2812b::LedDeviceWs2812b() :
LedRs232Device("/dev/ttyAMA0", 2000000)
LedRs232Device("/dev/ttyUSB0", 2000000)
{
// empty
}

View File

@@ -31,6 +31,7 @@ int LedRs232Device::open()
{
try
{
std::cout << "Opening UART: " << mDeviceName << std::endl;
_rs232Port.setPort(mDeviceName);
_rs232Port.setBaudrate(mBaudRate_Hz);
_rs232Port.open();