kopia lustrzana https://github.com/pimoroni/pimoroni-pico
Renamed plasma mp directory to match module name
rodzic
c4e0316fd8
commit
7496e8c8ba
|
@ -32,5 +32,5 @@ include(pico_unicorn/micropython)
|
|||
include(pico_display/micropython)
|
||||
include(pico_explorer/micropython)
|
||||
include(pico_wireless/micropython)
|
||||
include(plasma_2040/micropython)
|
||||
include(plasma/micropython)
|
||||
include(ulab/code/micropython)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
set(MOD_NAME plasma_2040)
|
||||
set(MOD_NAME plasma)
|
||||
string(TOUPPER ${MOD_NAME} MOD_NAME_UPPER)
|
||||
add_library(usermod_${MOD_NAME} INTERFACE)
|
||||
|
||||
|
@ -14,7 +14,6 @@ pico_generate_pio_header(usermod_${MOD_NAME} ${CMAKE_CURRENT_LIST_DIR}/../../../
|
|||
target_include_directories(usermod_${MOD_NAME} INTERFACE
|
||||
${CMAKE_CURRENT_LIST_DIR}
|
||||
${CMAKE_CURRENT_LIST_DIR}/../../../drivers/plasma/
|
||||
${CMAKE_CURRENT_LIST_DIR}/../../../libraries/plasma2040/
|
||||
)
|
||||
|
||||
target_compile_definitions(usermod_${MOD_NAME} INTERFACE
|
|
@ -1,4 +1,4 @@
|
|||
#include "plasma_2040.h"
|
||||
#include "plasma.h"
|
||||
|
||||
|
||||
/***** Methods *****/
|
|
@ -1,4 +1,5 @@
|
|||
#include "libraries/plasma2040/plasma2040.hpp"
|
||||
#include "drivers/plasma/ws2812.hpp"
|
||||
#include "drivers/plasma/apa102.hpp"
|
||||
#include <cstdio>
|
||||
|
||||
#define MP_OBJ_TO_PTR2(o, t) ((t *)(uintptr_t)(o))
|
||||
|
@ -11,7 +12,7 @@
|
|||
using namespace plasma;
|
||||
|
||||
extern "C" {
|
||||
#include "plasma_2040.h"
|
||||
#include "plasma.h"
|
||||
#include "py/builtin.h"
|
||||
|
||||
typedef struct _mp_obj_float_t {
|
Ładowanie…
Reference in New Issue