v1.2版本改为通过xbox系列手柄进行遥控,并增加智能模式和手动模式
This commit is contained in:
1 parent
76603d3c31
commit
1a97bc32c3
1839 files changed
+478852
-3
No files matched your search
@@ -0,0 +1,27 @@
|
||||
// g++ --std=c++11 test.cpp
|
||||
|
||||
#include "test.h"
|
||||
|
||||
#include "test.h"
|
||||
#include "lib8tion/intmap.h"
|
||||
#include "fl/namespace.h"
|
||||
FASTLED_USING_NAMESPACE
|
||||
|
||||
TEST_CASE("map8_to_16") {
|
||||
CHECK_EQ(map8_to_16(0), 0);
|
||||
CHECK_EQ(map8_to_16(1), 0x101);
|
||||
CHECK_EQ(map8_to_16(0xff), 0xffff);
|
||||
}
|
||||
|
||||
|
||||
TEST_CASE("map8_to_32") {
|
||||
CHECK_EQ(map8_to_32(0), 0);
|
||||
CHECK_EQ(map8_to_32(1), 0x1010101);
|
||||
CHECK_EQ(map8_to_32(0xff), 0xffffffff);
|
||||
}
|
||||
|
||||
TEST_CASE("map16_to_32") {
|
||||
CHECK_EQ(map16_to_32(0), 0);
|
||||
CHECK_EQ(map16_to_32(1), 0x10001);
|
||||
CHECK_EQ(map16_to_32(0xffff), 0xffffffff);
|
||||
}
|
||||
Reference in new issue
Block a user