Changing from HSPI to FSPI
This commit is contained in:
parent
91f8ba0e4d
commit
1b7c0f6f11
|
@ -2,7 +2,7 @@
|
|||
|
||||
#include <Arduino.h>
|
||||
#define FASTLED_ALL_PINS_HARDWARE_SPI
|
||||
#define FASTLED_ESP32_SPI_BUS HSPI
|
||||
#define FASTLED_ESP32_SPI_BUS FSPI
|
||||
#define FASTLED_ESP32_FLASH_LOCK 1
|
||||
#include <FastLED.h> // Driver for WS2812 RGB LED
|
||||
#include <PCF8574.h> // Driver for PCF8574 output modul from Horter
|
||||
|
@ -156,8 +156,8 @@ void toggleBacklightLED(uint brightness, CHSV color){
|
|||
|
||||
void setFlashLED(bool status){
|
||||
static bool oldstatus;
|
||||
FastLED.setBrightness(255); // Brightness for flash LED
|
||||
if(status == true){
|
||||
FastLED.setBrightness(255); // Brightness for flash LED
|
||||
fled[0] = CRGB::Red; // Flash LED on in red
|
||||
}
|
||||
else{
|
||||
|
@ -169,8 +169,8 @@ void setFlashLED(bool status){
|
|||
void blinkingFlashLED(){
|
||||
if(blinkingLED == true){
|
||||
statusLED = !statusLED; // Toggle LED for each run
|
||||
FastLED.setBrightness(255); // Brightness for flash LED
|
||||
if(statusLED == true){
|
||||
FastLED.setBrightness(255); // Brightness for flash LED
|
||||
fled[0] = CRGB::Red; // Flash LED on in red
|
||||
}
|
||||
else{
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <Arduino.h>
|
||||
#include "OBP60Hardware.h"
|
||||
#define FASTLED_ALL_PINS_HARDWARE_SPI
|
||||
#define FASTLED_ESP32_SPI_BUS HSPI
|
||||
#define FASTLED_ESP32_SPI_BUS FSPI
|
||||
#define FASTLED_ESP32_FLASH_LOCK 1
|
||||
#include <FastLED.h> // Driver for WS2812 RGB LED
|
||||
#include <GxEPD2_BW.h> // E-paper lib V2
|
||||
|
|
Loading…
Reference in New Issue