We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfef501 commit c91901dCopy full SHA for c91901d
shared-bindings/rainbowio/__init__.h
@@ -27,7 +27,8 @@
27
#ifndef CP_SHARED_BINDINGS_RAINBOWIO_INIT_H
28
#define CP_SHARED_BINDINGS_RAINBOWIO_INIT_H
29
#include <stdint.h>
30
+#include "py/misc.h"
31
-const int32_t colorwheel(float pos);
32
+int32_t colorwheel(mp_float_t pos);
33
34
#endif // CP_SHARED_BINDINGS_RAINBOWIO_INIT_H
shared-module/rainbowio/__init__.c
@@ -26,7 +26,7 @@
26
#include "shared-bindings/rainbowio/__init__.h"
-const int32_t colorwheel(float pos) {
+int32_t colorwheel(mp_float_t pos) {
if (pos > 255) {
pos = pos - ((uint32_t)(pos / 256) * 256);
}
0 commit comments