rainbowio: Fix some things the unix build errors about
This commit is contained in:
parent
dfef5014ed
commit
c91901dc37
|
@ -27,7 +27,8 @@
|
|||
#ifndef CP_SHARED_BINDINGS_RAINBOWIO_INIT_H
|
||||
#define CP_SHARED_BINDINGS_RAINBOWIO_INIT_H
|
||||
#include <stdint.h>
|
||||
#include "py/misc.h"
|
||||
|
||||
const int32_t colorwheel(float pos);
|
||||
int32_t colorwheel(mp_float_t pos);
|
||||
|
||||
#endif // CP_SHARED_BINDINGS_RAINBOWIO_INIT_H
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
#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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue