Closed almir984 closed 3 years ago
can you please share your files, im having trouble on bl touch
We will upload it
Trying to compile with Neopixel active on PA2 pin results in:
#error "NEOPIXEL_LED (Adafruit NeoPixel) is not supported for HAL/STM32F1. Comment out this line to proceed at your own risk!"
That is with MKS Adafruit Neopixel library added in platformio.ini as a lib_deps
for MKS Robin E3
I could very well have done that wrong but I'm thinking it should have worked ok.
I have modified marlin as you indicate in the help: https://github.com/makerbase-mks/MKS-Robin-E3-E3D/wiki/Upgrade-with-Neopixel-lights. Built only with platformio.ini is OK but built with platformio.ini and configuration.h (neopixel) error. Compiling .pio\build\mks_robin_e3\src\src\HAL\STM32F1\SPI.cpp.o In file included from Marlin\src\HAL\STM32F1../../inc/MarlinConfig.h:50:0, from Marlin\src\HAL\STM32F1\HAL.cpp:30: Marlin\src\HAL\STM32F1../../inc/../HAL/STM32F1/inc/SanityCheck.h:52:4: error: #error "NEOPIXEL_LED (Adafruit NeoPixel) is not supported for HAL/STM32F1. Comment out this line to proceed at your own risk!"
modified in configuration.h:
// Support for Adafruit NeoPixel LED driver
//#define NEOPIXEL2_TYPE NEOPIXEL_TYPE //#define NEOPIXEL2_PIN 5
//#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
// Support for second Adafruit NeoPixel LED driver controlled with M150 S1 ... //#define NEOPIXEL2_SEPARATE
#define NEOPIXEL2_PIXELS 15 // Number of LEDs in the second strip
#define NEOPIXEL2_BRIGHTNESS 127 // Initial brightness (0-255)
#define NEOPIXEL2_STARTUP_TEST // Cycle through colors at startup
//#define NEOPIXEL2_INSERIES // Default behavior is NeoPixel 2 in parallel
Help me please
Comment out the mentioned line in SanityCheck.h
Check your platformio.ini for :
#
# MKS Robin E3D (STM32F103RCT6) and
# MKS Robin E3 with TMC2209
#
[env:mks_robin_e3]
platform = ${common_stm32f1.platform}
extends = common_stm32f1
board = genericSTM32F103RC
platform_packages = tool-stm32duino
extra_scripts = ${common.extra_scripts}
buildroot/share/PlatformIO/scripts/mks_robin_e3.py
build_flags = ${common_stm32f1.build_flags}
-DDEBUG_LEVEL=0 -DSS_TIMER=4
and add
custom_marlin.NEOPIXEL_LED = Adafruit NeoPixel=https://github.com/ellensp/Adafruit_NeoPixel
Configure the Neopixel as desired in Configuration.h
I have successfully installed 3d touch but now I am struggling to make neopixels to work.. I'm using marlin 2.0.6.. on mks robin e3